mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Add a github action for skipping failed tests via comment (#122088)
This commit is contained in:
parent
add93740db
commit
a0e750de97
1 changed files with 44 additions and 0 deletions
44
.github/workflows/skip-failed-test.yml
vendored
Normal file
44
.github/workflows/skip-failed-test.yml
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
on:
|
||||
issue_comment:
|
||||
types:
|
||||
- created
|
||||
|
||||
jobs:
|
||||
issue_commented:
|
||||
name: Skip failed test on comment
|
||||
if: |
|
||||
!github.event.issue.pull_request
|
||||
&& startsWith(github.event.comment.body, '/skip')
|
||||
&& contains(github.event.issue.labels.*.name, 'failed-test')
|
||||
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: User Permission Check
|
||||
uses: ./actions/permission-check
|
||||
with:
|
||||
permission: admin
|
||||
|
||||
- name: Checkout kibana-operations
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: 'elastic/kibana-operations'
|
||||
ref: main
|
||||
path: ./kibana-operations
|
||||
token: ${{secrets.KIBANAMACHINE_TOKEN}}
|
||||
|
||||
- name: Install Actions
|
||||
working-directory: ./kibana-operations/triage
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.KIBANAMACHINE_TOKEN}}
|
||||
run: |
|
||||
npm install
|
||||
node failed-test-auto ${{github.event.issue.number}}
|
Loading…
Add table
Add a link
Reference in a new issue