Skip to content

Commit

Permalink
fix(nix ci): use push: paths as workflow trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
aimixsaka committed Jul 26, 2024
1 parent 445e729 commit 6665904
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/udpate-nix-npm-dep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@ name: automatically update package-lock.json and npmDepsHash
on:
push:
branches: ["master"]
paths:
- package.json

jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

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

- name: update package-lock.json and npmDepsHash
uses: cachix/install-nix-action@v27
Expand Down

0 comments on commit 6665904

Please sign in to comment.