Skip to content

Commit ea72e9e

Browse files
m
1 parent d316a18 commit ea72e9e

2 files changed

Lines changed: 41 additions & 1 deletion

File tree

.github/workflows/daily_ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,21 @@ jobs:
3636
tests:
3737
# Don't run the cron builds on forks
3838
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
39-
uses: ./.github/workflows/ci_tests.yaml
39+
uses: ./.github/workflows/ci_tests.yaml
40+
41+
notify:
42+
needs:
43+
[
44+
codebuild_batch,
45+
codebuild_tests,
46+
decrypt_oracle,
47+
static_analysis,
48+
test_vector_handler,
49+
tests
50+
]
51+
if: ${{ failure() }}
52+
uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main
53+
with:
54+
message: "Daily CI failed on `${{ github.repository }}`. View run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
55+
secrets:
56+
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)