Skip to content

Commit

Permalink
fix: code cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Leach <[email protected]>
  • Loading branch information
jleach committed Oct 24, 2024
1 parent ee2571c commit 42cedd3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/actions/early-exit-check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ runs:
echo "Comparing origin/${GITHUB_BASE_REF:-HEAD} with ${end_ref}"
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'
)
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')
echo "$change_count files changed in app, .yarn, or .github/workflows"
if [ $change_count -gt 0 ]; then
# A result greater than 0 means there are changes
Expand Down

0 comments on commit 42cedd3

Please sign in to comment.