We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ed5f89 commit 3b5ee45Copy full SHA for 3b5ee45
.github/workflows/backport.yml
@@ -0,0 +1,26 @@
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
+ # Only react to merged PRs for security reasons.
13
+ # See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
14
+ if: >
15
+ github.event.pull_request.merged
16
+ && (
17
+ github.event.action == 'closed'
18
+ || (
19
+ github.event.action == 'labeled'
20
+ && contains(github.event.label.name, 'backport')
21
+ )
22
23
+ steps:
24
+ - uses: sourcegraph/backport@v2
25
+ with:
26
+ github_token: ${{ secrets.BACKPORT_GITHUB_TOKEN }}
0 commit comments