Skip to content

Commit 5ce0676

Browse files
authored
Add a workflow to merge release into master (#6217)
1 parent 9c5c9c3 commit 5ce0676

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Merge Release Into Master
2+
3+
on: repository_dispatch
4+
5+
jobs:
6+
merge_to_master:
7+
runs-on: ubuntu-latest
8+
# Allow GITHUB_TOKEN to have write permissions
9+
permissions:
10+
contents: write
11+
steps:
12+
- name: Merge to master
13+
uses: actions/github-script@v6
14+
with:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
16+
script: |
17+
github.repos.merge({
18+
owner: context.repo.owner,
19+
repo: context.repo.repo,
20+
base: 'master',
21+
head: 'release'
22+
})

0 commit comments

Comments
 (0)