mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Add workflow to trigger alert on failed test (#183741)
This commit is contained in:
parent
bae84d4569
commit
9ef9a8481b
1 changed files with 28 additions and 0 deletions
28
.github/workflows/alert-failed-test.yml
vendored
Normal file
28
.github/workflows/alert-failed-test.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
issue_alert:
|
||||
name: Alert on failed test
|
||||
if: |
|
||||
!github.event.issue.pull_request
|
||||
&& github.event.comment.user.login == 'kibanamachine'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout kibana-operations
|
||||
uses: actions/checkout@v4
|
||||
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}}
|
||||
SLACK_TOKEN: ${{secrets.SLACK_TOKEN_FAILED_TEST_NOTIFIER}}
|
||||
run: |
|
||||
npm ci --omit=dev
|
||||
node failed-test-alert ${{github.event.issue.number}} || true
|
Loading…
Add table
Add a link
Reference in a new issue