Skip to content

Commit 91b4521

Browse files
committed
Use backport github action
Signed-off-by: Albert Callarisa <albert@diagrid.io>
1 parent a91c026 commit 91b4521

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/backport.yaml

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

0 commit comments

Comments
 (0)