Skip to content

Commit 9312049

Browse files
committed
Add slack notifications for nightlies
Signed-off-by: Marek Aufart <[email protected]>
1 parent ea7aaea commit 9312049

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

.github/workflows/nightly-main-latest.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,20 @@ jobs:
1111
with:
1212
tag: latest
1313
tier: TIER0
14+
report_failure:
15+
needs: test-suite
16+
if: ${{ always() && contains(needs.*.result, 'failure') }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Send failure data to Slack workflow
20+
id: slack
21+
uses: slackapi/[email protected]
22+
with:
23+
payload: |
24+
{
25+
"test": "CLI kantra",
26+
"branch": "main",
27+
"note": "Failed run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
28+
}
29+
env:
30+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/nightly-main-release06.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,20 @@ jobs:
1111
with:
1212
tag: release-0.6
1313
tier: TIER0
14+
report_failure:
15+
needs: test-suite
16+
if: ${{ always() && contains(needs.*.result, 'failure') }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Send failure data to Slack workflow
20+
id: slack
21+
uses: slackapi/[email protected]
22+
with:
23+
payload: |
24+
{
25+
"test": "CLI kantra",
26+
"branch": "release-0.6",
27+
"note": "Failed run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
28+
}
29+
env:
30+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/nightly-main-release07.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,20 @@ jobs:
1111
with:
1212
tag: release-0.7
1313
tier: TIER0
14+
report_failure:
15+
needs: test-suite
16+
if: ${{ always() && contains(needs.*.result, 'failure') }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Send failure data to Slack workflow
20+
id: slack
21+
uses: slackapi/[email protected]
22+
with:
23+
payload: |
24+
{
25+
"test": "CLI kantra",
26+
"branch": "release-0.7",
27+
"note": "Failed run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
28+
}
29+
env:
30+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)