Skip to content

Commit 42cedd3

Browse files
committed
fix: code cleanup
Signed-off-by: Jason C. Leach <jason.leach@fullboar.ca>
1 parent ee2571c commit 42cedd3

File tree

1 file changed

+1
-6
lines changed
  • .github/workflows/actions/early-exit-check

1 file changed

+1
-6
lines changed

.github/workflows/actions/early-exit-check/action.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ runs:
2020
2121
echo "Comparing origin/${GITHUB_BASE_REF:-HEAD} with ${end_ref}"
2222
23-
change_count=$(
24-
git diff --name-only origin/${GITHUB_BASE_REF:-HEAD}..${end_ref} | \
25-
grep -E '^(app/.*)|(.yarn/.*)|(.github/workflows/.*)' | \
26-
wc -l | \
27-
awk '{$1=$1};1'
28-
)
23+
change_count=$(git diff --name-only origin/${GITHUB_BASE_REF:-HEAD}..${end_ref} | grep -E '^(app/.*)|(.yarn/.*)|(.github/workflows/.*)' | wc -l | awk '{$1=$1};1')
2924
echo "$change_count files changed in app, .yarn, or .github/workflows"
3025
if [ $change_count -gt 0 ]; then
3126
# A result greater than 0 means there are changes

0 commit comments

Comments
 (0)