Skip to content

Commit

Permalink
Skip updating package-lock for dependabot updates (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kusnierz authored Jun 14, 2023
1 parent 42f420f commit 6788924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion npm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ runs:
run: echo "package-changed=$(git status | grep package-lock.json | wc -l)" >> $GITHUB_OUTPUT
shell: bash

- if: ${{ steps.package-lock-status.outputs.package-changed == '1' && inputs.gh-ssh-private-key != '' && github.ref_protected != true }}
- if: ${{ steps.package-lock-status.outputs.package-changed == '1' && inputs.gh-ssh-private-key != '' && github.ref_protected != true && github.actor != 'dependabot[bot]' }}
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updated package-lock.json
Expand Down

0 comments on commit 6788924

Please sign in to comment.