Skip to content

Commit

Permalink
fix(dispatch-npm-engines): force push before creating PR
Browse files Browse the repository at this point in the history
In case the PR already exists

Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
  • Loading branch information
skjnldsv authored Jan 16, 2024
1 parent 7775e31 commit 6b3fc4c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/dispatch-npm-engines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,25 @@ jobs:
if: steps.check_file_existence.outputs.files_exists == 'true'
run: jq '.engines.npm = "${{ env.NPM_VERSION }}"' package.json > package-new.json && mv package-new.json package.json

- name: Setup git
run: |
git config --local user.email "nextcloud-command@users.noreply.github.com"
git config --local user.name "nextcloud-command"
- name: Commit and push amend
if: ${{ needs.init.outputs.arg1 == 'amend' }}
run: |
git add .
git commit --signoff -m 'Update npm and node engines versions'
git push --force origin feat/package-node-npm-engines-update
- name: Create Pull Request
if: steps.check_file_existence.outputs.files_exists == 'true'
uses: peter-evans/create-pull-request@v5
with:
body: Automated update of the npm and node engines versions
branch: feat/package-node-npm-engines-update
commit-message: Update npm and node engines versions
committer: Nextcloud bot <bot@nextcloud.com>
author: Nextcloud bot <bot@nextcloud.com>
signoff: true
title: Update npm and node engines versions
labels: dependencies
token: ${{ secrets.COMMAND_BOT_PAT }}

0 comments on commit 6b3fc4c

Please sign in to comment.