Skip to content

Commit 69c0b0e

Browse files
authored
ci: set PR auto merge version bump PR (#146)
1 parent 0cc0b41 commit 69c0b0e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/prepare_release.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
create-pr:
1717
runs-on: ubuntu-latest
1818
steps:
19+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1920
- uses: mongodb-js/devtools-shared/actions/setup-bot-token@main
2021
id: app-token
2122
with:
2223
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
2324
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
24-
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
2525
- uses: actions/checkout@v4
2626
- uses: actions/setup-node@v4
2727
with:
@@ -45,3 +45,8 @@ jobs:
4545
branch: chore_release_${{ steps.bump-version.outputs.NEW_VERSION }}
4646
author: "${{ steps.app-token.outputs.app-slug}}[bot] <${{ steps.app-token.outputs.app-email }}>"
4747
committer: "${{ steps.app-token.outputs.app-slug}}[bot] <${{ steps.app-token.outputs.app-email }}>"
48+
- name: Set auto merge
49+
env:
50+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
51+
run: |
52+
gh pr merge ${{ steps.create-pr.outputs.pull-request-number }} --auto --squash

0 commit comments

Comments
 (0)