csp-task/add-kibana-rules-to-integration #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request_target: | |
branches: | |
- main | |
types: | |
- labeled | |
- closed | |
jobs: | |
backport: | |
name: Backport PR | |
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 | |
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 |