[workflows] Add condition to if backport:skip event #180130
Workflow file for this run
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: | ||
types: | ||
- closed | ||
- labeled | ||
- unlabeled | ||
jobs: | ||
on-merge: | ||
name: 'Label and Backport' | ||
runs-on: ubuntu-latest | ||
if: | | ||
Check failure on line 12 in .github/workflows/on-merge.yml GitHub Actions / .github/workflows/on-merge.ymlInvalid workflow file
|
||
github.event.pull_request.merged == true && | ||
(github.event.action == 'closed' || | ||
(github.event.action == 'labeled' && | ||
(github.event.label.name == 'backport:prev-minor' || | ||
github.event.label.name == 'backport:prev-major' || | ||
github.event.label.name == 'backport:current-major' || | ||
github.event.label.name == 'backport:all-open' || | ||
github.event.label.name == 'backport:version' || | ||
github.event.label.name == 'auto-backport')) || | ||
(github.event.action == 'unlabeled' && | ||
github.event.label.name == 'backport:skip' && | ||
(contains(github.event.pull_request.labels.*.name, 'backport:prev-minor') || | ||
contains(github.event.pull_request.labels.*.name, 'backport:prev-major') || | ||
contains(github.event.pull_request.labels.*.name, 'backport:current-major') || | ||
contains(github.event.pull_request.labels.*.name, 'backport:all-open') || | ||
contains(github.event.pull_request.labels.*.name, 'backport:version') || | ||
contains(github.event.pull_request.labels.*.name, 'auto-backport')))); | ||
steps: | ||
- name: Checkout Actions | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
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}} |