Skip to content

Commit

Permalink
[npm-install] update lockfile only for texts (#18)
Browse files Browse the repository at this point in the history
* [npm-install] update lockfile only for texts

* more specific filter
  • Loading branch information
m-kusnierz authored Jul 20, 2023
1 parent 6788924 commit 501565d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions npm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ 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 && github.actor != 'dependabot[bot]' }}
- if: ${{ steps.package-lock-status.outputs.package-changed == '1' && inputs.gh-ssh-private-key != '' && github.ref_protected != true && github.actor != 'dependabot[bot]' && contains(github.event.pull_request.title, '-texts') }}
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updated package-lock.json
file_pattern: "package-lock.json"
disable_globbing: true

- if: ${{ github.event.number != '' && steps.package-lock-status.outputs.package-changed == '1' && inputs.gh-ssh-private-key == '' && github.ref_protected != true && github.actor != 'dependabot[bot]' }}
- if: ${{ github.event.number != '' && steps.package-lock-status.outputs.package-changed == '1' && inputs.gh-ssh-private-key == '' && github.ref_protected != true && github.actor != 'dependabot[bot]' && !contains(github.event.pull_request.title, '-texts') }}
name: Comment outdated package-lock.json
uses: peter-evans/create-or-update-comment@v2
with:
Expand Down

0 comments on commit 501565d

Please sign in to comment.