Skip to content

Commit

Permalink
change git diff command
Browse files Browse the repository at this point in the history
  • Loading branch information
Haidong Yi committed Aug 23, 2024
1 parent 7b7e652 commit 946fa4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Check if files changed
id: files_changed
run: |
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q "^${{ matrix.app }}/"; then
if git diff-tree --no-commit-id --name-only -r HEAD | grep -q "^${{ matrix.app }}/"; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 946fa4a

Please sign in to comment.