Skip to content

Commit

Permalink
[backport] Use new backport action (#126542)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv authored Mar 3, 2022
1 parent efcdbb6 commit 8b99447
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 46 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/backport-next.yml

This file was deleted.

24 changes: 5 additions & 19 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,19 @@ on:
jobs:
backport:
name: Backport PR
runs-on: ubuntu-latest
if: |
github.event.pull_request.merged == true
&& contains(github.event.pull_request.labels.*.name, 'auto-backport')
&& (
(github.event.action == 'labeled' && github.event.label.name == 'auto-backport')
|| (github.event.action == 'closed')
)
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'elastic/kibana-github-actions'
ref: main
path: ./actions

- name: Install Actions
run: npm install --production --prefix ./actions

- name: Fix Version Label Gaps
uses: ./actions/fix-version-gaps
- name: Backport Action
uses: sqren/backport-github-action@v7.4.0
with:
github_token: ${{secrets.KIBANAMACHINE_TOKEN}}

- name: Run Backport
uses: ./actions/backport
with:
github_token: ${{secrets.KIBANAMACHINE_TOKEN}}
commit_user: kibanamachine
commit_email: 42973632+kibanamachine@users.noreply.github.com
- name: Backport log
run: cat ~/.backport/backport.log

0 comments on commit 8b99447

Please sign in to comment.