mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Create on-merge.yml
This commit is contained in:
parent
c611f080d1
commit
0126a4da9c
1 changed files with 39 additions and 0 deletions
39
.github/workflows/on-merge.yml
vendored
Normal file
39
.github/workflows/on-merge.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- closed
|
||||
- labeled
|
||||
|
||||
jobs:
|
||||
on-merge:
|
||||
name: 'Label and Backport'
|
||||
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 == 'backport:prev-minor'
|
||||
|| github.event.label.name == 'backport:prev-major'
|
||||
|| github.event.label.name == 'backport:all-open'
|
||||
|| github.event.label.name == 'backport:auto-version'
|
||||
)
|
||||
)
|
||||
|| (github.event.action == 'closed')
|
||||
)
|
||||
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: Run On-Merge
|
||||
uses: ./actions/on-merge
|
||||
with:
|
||||
github_token: ${{secrets.KIBANAMACHINE_TOKEN}}
|
Loading…
Add table
Add a link
Reference in a new issue