Skip to content

Commit 526bec2

Browse files
n8mgrChrisSchinnerl
authored andcommitted
automatically merge package PR
1 parent c5a25cc commit 526bec2

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ concurrency:
2828
group: ${{ github.workflow }}
2929
cancel-in-progress: false
3030

31+
permissions:
32+
contents: write
33+
pull-requests: write
34+
3135
jobs:
3236
build:
3337
runs-on: ubuntu-latest
@@ -194,11 +198,16 @@ jobs:
194198
rm -rf *.deb
195199
196200
- name: Create Pull Request
197-
uses: peter-evans/create-pull-request@v5
201+
uses: peter-evans/create-pull-request@v7
202+
id: create_pr
198203
with:
199-
token: ${{ secrets.GITHUB_TOKEN }}
204+
delete-branch: true
200205
commit-message: '${{ env.PROJECT }}: ${{ env.RELEASE_TAG }}'
201206
title: '${{ env.PROJECT }} (${{ env.RELEASE_COMPONENT }}): ${{ env.RELEASE_TAG }}'
202207
body: 'This is an automated PR to update ${{ env.PROJECT }} to ${{ env.RELEASE_TAG }}'
203208
branch: ${{ env.PROJECT }}/update/${{env.RELEASE_COMPONENT }}/${{ env.RELEASE_TAG }}
204-
base: master
209+
base: master
210+
- name: Automerge
211+
run: gh pr merge --merge --auto "${{ steps.create_pr.outputs.pull-request-number }}"
212+
env:
213+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)