Skip to content

Commit 7c8d43c

Browse files
committed
Enable automerge on changelog collection PR
1 parent 4850fc3 commit 7c8d43c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎templates/github/.github/workflows/nightly.yml.j2‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,20 @@ jobs:
5353

5454
- name: Create Pull Request
5555
uses: peter-evans/create-pull-request@v6
56+
id: "create_pr_changelog"
5657
with:
5758
token: {{ '${{ secrets.RELEASE_TOKEN }}' }}
5859
title: "Update Changelog"
5960
body: ""
6061
branch: "changelog/update"
6162
delete-branch: true
6263
path: "{{ plugin_name }}"
64+
- name: "Mark PR automerge"
65+
working-directory: "{{ plugin_name }}"
66+
run: |
67+
gh pr merge --rebase --auto "{{ '${{ steps.create_pr_changelog.outputs.pull-request-number }}' }}"
68+
if: "steps.create_pr_changelog.outputs.pull-request-number"
69+
env:
70+
GH_TOKEN: "{{ '${{ secrets.RELEASE_TOKEN }}' }}"
71+
continue-on-error: true
6372
...

0 commit comments

Comments
 (0)