Skip to content

Commit 8ad0073

Browse files
authored
Add backport action (#3427)
Signed-off-by: Matteo Collina <hello@matteocollina.com>
1 parent 9bc9b44 commit 8ad0073

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/backport.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Backport
2+
on:
3+
pull_request_target:
4+
types:
5+
- closed
6+
- labeled
7+
8+
permissions:
9+
pull-requests: write
10+
contents: write
11+
12+
jobs:
13+
backport:
14+
runs-on: ubuntu-latest
15+
if: >
16+
github.event.pull_request.merged
17+
&& (
18+
github.event.action == 'closed'
19+
|| (
20+
github.event.action == 'labeled'
21+
&& contains(github.event.label.name, 'backport')
22+
)
23+
)
24+
name: Backport
25+
steps:
26+
- name: Backport
27+
uses: tibdex/backport@v2
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)