Skip to content

Commit

Permalink
fix(nix ci): use ${{ github.event.after } instead of HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
aimixsaka committed Jul 26, 2024
1 parent 918604a commit e0cffaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/udpate-nix-npm-dep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

- name: check if package.json has changed
run: |
if ! git diff --name-only HEAD HEAD~ | grep package.json; then
if ! git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | grep package.json; then
exit 0
fi
Expand Down

0 comments on commit e0cffaa

Please sign in to comment.