Skip to content

Commit 293cc7b

Browse files
authored
add backport action (#299)
1 parent 5c0ef86 commit 293cc7b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/backport.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Backport
2+
on:
3+
pull_request_target:
4+
types:
5+
- closed
6+
- labeled
7+
8+
jobs:
9+
backport:
10+
runs-on: ubuntu-latest
11+
name: Backport
12+
steps:
13+
- name: Backport Bot
14+
id: backport
15+
if: github.event.pull_request.merged && ( ( github.event.action == 'closed' && contains( join( github.event.pull_request.labels.*.name ), 'backport') ) || contains( github.event.label.name, 'backport' ) )
16+
uses: m-kuhn/[email protected]
17+
with:
18+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)