mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[CI] Add GitHub action for fixing version label gaps (#106467)
This commit is contained in:
parent
b807776699
commit
8837196851
2 changed files with 40 additions and 0 deletions
5
.github/workflows/backport.yml
vendored
5
.github/workflows/backport.yml
vendored
|
@ -28,6 +28,11 @@ jobs:
|
|||
- 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:
|
||||
|
|
35
.github/workflows/fix-version-gaps.yml
vendored
Normal file
35
.github/workflows/fix-version-gaps.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
types:
|
||||
- closed
|
||||
|
||||
jobs:
|
||||
gaps:
|
||||
name: Fix Version Label Gaps
|
||||
# This fix also runs as part of the backport action (because backport depends on the labels)
|
||||
# So we only need to trigger it for merged PRs that also won't be auto-backported
|
||||
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: Run Fix Gaps
|
||||
uses: ./actions/fix-version-gaps
|
||||
with:
|
||||
github_token: ${{secrets.KIBANAMACHINE_TOKEN}}
|
Loading…
Add table
Add a link
Reference in a new issue