Skip to content

Commit

Permalink
run dependency check only if build.gradle changed
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Apr 27, 2024
1 parent 3c3be2e commit 5e1f0db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
echo "should-run=false" >> $GITHUB_OUTPUT
for file in ${ALL_CHANGED_FILES}; do
[ "$file" == "*build.gradle" ] && echo "should-run=false" >> $GITHUB_OUTPUT && echo "$file was changed"
[ "$file" == "*build.gradle" ] && echo "$file was changed" && echo "should-run=true" >> $GITHUB_OUTPUT
done
echo "should-run=false" >> $GITHUB_OUTPUT
verify-dependencies:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5e1f0db

Please sign in to comment.