Skip to content

Commit 895e146

Browse files
committed
Use github action to merge the bump PR
1 parent d947214 commit 895e146

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/post-release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ jobs:
3535
repo: context.repo.repo,
3636
body: '/approve'
3737
})
38+
- uses: actions/github-script@v5
39+
if: ${{ steps.cpr.outputs.pull-request-number }}
40+
with:
41+
github-token: ${{secrets.GIT_ACCESS_TOKEN}}
42+
script: |
43+
await github.rest.pulls.merge({
44+
owner: context.repo.owner,
45+
repo: context.repo.repo,
46+
pull_number: ${{ steps.cpr.outputs.pull-request-number }},
47+
merge_method: 'merge'
48+
})
49+
3850
publish-npm:
3951
runs-on: ubuntu-latest
4052
permissions:

0 commit comments

Comments
 (0)