-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (39 loc) · 1.06 KB
/
main-verification.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright (C) 2023 TomTom NV. All rights reserved.
---
name: Main Verification
on:
push:
branches:
- main
concurrency: ${{ github.ref }}
# clear out default permissions
permissions: {}
jobs:
build:
permissions:
contents: read
uses: ./.github/workflows/build.yaml
notify:
needs: build
if: failure()
runs-on: ubuntu-latest
steps:
- name: Send slack notification
uses: slackapi/[email protected]
with:
payload: |
{
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.head_commit.url }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "GitHub Action build result: ${{ job.status }}\n${{ github.event.head_commit.url }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK