[failed-test] Auto-label failed-test issues whenever possible (#128089)

This commit is contained in:
Brian Seeders 2022-03-18 14:44:07 -04:00 committed by GitHub
parent a467450a47
commit a4856b47fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

28
.github/workflows/label-failed-test.yml vendored Normal file
View file

@ -0,0 +1,28 @@
on:
issues:
types:
- labeled
jobs:
issue_commented:
name: Label failed test issue
if: |
!github.event.issue.pull_request
&& github.event.label.name == 'failed-test'
runs-on: ubuntu-latest
steps:
- name: Checkout kibana-operations
uses: actions/checkout@v2
with:
repository: 'elastic/kibana-operations'
ref: main
path: ./kibana-operations
token: ${{secrets.KIBANAMACHINE_TOKEN}}
- name: Label failed test issue
working-directory: ./kibana-operations/triage
env:
GITHUB_TOKEN: ${{secrets.KIBANAMACHINE_TOKEN}}
run: |
npm install
node failed-test-label ${{github.event.issue.number}} || true