Skip to content

Commit 5bdeaa0

Browse files
authored
Add auto-merge step for PRs in collections workflow
Added auto-merge step for pull requests in workflow.
1 parent 783558f commit 5bdeaa0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/collections-renames.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,11 @@ jobs:
3636
committer: "github-actions[bot] <actions@github.com>"
3737
branch: "update-collections-${PR_ID}"
3838
title: "✨ Autofixing renamed/removed collection items ✨"
39+
40+
- name: Auto-merge PR
41+
if: steps.cpr.outputs.pull-request-number
42+
run: |
43+
gh pr review --approve "${{ steps.cpr.outputs.pull-request-url }}"
44+
gh pr merge --auto "${{ steps.cpr.outputs.pull-request-url }}"
45+
env:
46+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)