We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48d1da8 commit 9988bb4Copy full SHA for 9988bb4
.github/workflows/backport-active.yml
@@ -0,0 +1,26 @@
1
+name: Backport to active branches
2
+
3
+on:
4
+ pull_request_target:
5
+ types: [closed, labeled]
6
+ branches:
7
+ - main
8
9
+permissions:
10
+ pull-requests: write
11
+ contents: read
12
13
+jobs:
14
+ backport:
15
+ # Only run if the PR was merged (not just closed) and has one of the backport labels
16
+ # or has been added afterwards.
17
+ if: |
18
+ github.event.pull_request.merged == true &&
19
+ (
20
+ (github.event.action == 'closed' && contains(toJSON(github.event.pull_request.labels.*.name), 'backport-active-')) ||
21
+ (github.event.action == 'labeled' && startsWith(github.event.label.name, 'backport-active-'))
22
+ )
23
+ runs-on: ubuntu-latest
24
25
+ steps:
26
+ - uses: elastic/oblt-actions/github/backport-active@v1
0 commit comments