Skip to content

Commit 35efebb

Browse files
Pin sorenlouv/backport-github-action action to ad888e9 (#363)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com> (cherry picked from commit 38b62ce) # Conflicts: # .github/workflows/backport.yml
1 parent 5c993b9 commit 35efebb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/backport.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Automatic backport action
2+
3+
on:
4+
pull_request_target:
5+
types: ["labeled", "closed"]
6+
7+
jobs:
8+
backport:
9+
name: Backport PR
10+
if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport'))
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Backport Action
14+
uses: sorenlouv/backport-github-action@ad888e978060bc1b2798690dd9d03c4036560947 # v9.5.1
15+
with:
16+
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
18+
- name: Info log
19+
if: ${{ success() }}
20+
run: cat ~/.backport/backport.info.log
21+
22+
- name: Debug log
23+
if: ${{ failure() }}
24+
run: cat ~/.backport/backport.debug.log

0 commit comments

Comments
 (0)