Skip to content

Commit 9621317

Browse files
committed
Merge branch 'notify-app-ios-on-successful-nightly-test-runs-ios-1575'
2 parents 956a031 + 9d89d73 commit 9621317

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: iOS end-to-end nightly tests monitor
3+
on:
4+
# https://docs.github.com/en/webhooks/webhook-events-and-payloads#workflow_run
5+
workflow_run:
6+
workflows: ["iOS end-to-end nightly tests"]
7+
types:
8+
- completed
9+
10+
permissions: {}
11+
12+
jobs:
13+
notify-on-failed-workflow:
14+
# Payload of workflow_run:
15+
# https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2026-03-10#get-a-workflow-run
16+
if: "${{ github.event.workflow_run.conclusion != 'successful' }}"
17+
name: Notify team on nightly E2E failure
18+
runs-on: [ubuntu-latest]
19+
timeout-minutes: 5
20+
steps:
21+
- name: Send custom event details to a Slack workflow
22+
uses: slackapi/slack-github-action@v2.1.1
23+
with:
24+
webhook: ${{ secrets.IOS_SLACK_WEBHOOK_URL }}
25+
webhook-type: webhook-trigger
26+
# workflow_run.html_url returns the full url of the workflow we're responding too.
27+
payload: |
28+
run_url: "${{ github.event.workflow_run.html_url }}"

0 commit comments

Comments
 (0)