Skip to content

Commit 902bab0

Browse files
chore(CI): add slack notifications (#797)
1 parent 9381006 commit 902bab0

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

.github/workflows/daily_ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,27 @@ jobs:
8484
uses: ./.github/workflows/library_legacy_interop_test_vectors.yml
8585
with:
8686
dafny: ${{needs.getVersion.outputs.version}}
87+
88+
notify:
89+
needs:
90+
[
91+
getVersion,
92+
getVerifyVersion,
93+
getFormatVersion,
94+
pr-ci-format,
95+
daily-ci-codegen,
96+
daily-ci-verification,
97+
daily-ci-net,
98+
daily-ci-rust,
99+
daily-ci-go,
100+
daily-ci-interop-tests,
101+
daily-dafny-keyring-test-vectors,
102+
pr-dafny-mkp-keyring-legacy-test-vectors,
103+
daily-dafny-legacy-test-vectors,
104+
]
105+
if: ${{ failure() }}
106+
uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main
107+
with:
108+
message: "Daily CI failed on `${{ github.repository }}`. View run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
109+
secrets:
110+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_CI }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Issue Created Notification
2+
on:
3+
issues:
4+
types: [opened, reopened]
5+
issue_comment:
6+
types: [created]
7+
8+
jobs:
9+
notify-issue:
10+
if: github.event_name == 'issues'
11+
uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main
12+
with:
13+
message: "New github issue `${{ github.event.issue.title }}`. Link: ${{ github.event.issue.html_url }}"
14+
secrets:
15+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_GHI }}
16+
17+
notify-comment:
18+
if: github.event_name == 'issue_comment' && !github.event.issue.pull_request
19+
uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main
20+
with:
21+
message: "New comment on issue `${{ github.event.issue.title }}`. Link: ${{ github.event.comment.html_url }}"
22+
secrets:
23+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_GHI }}

0 commit comments

Comments
 (0)