diff --git a/.github/workflows/daily_ci.yml b/.github/workflows/daily_ci.yml index a5b9b65..08fe6ef 100644 --- a/.github/workflows/daily_ci.yml +++ b/.github/workflows/daily_ci.yml @@ -1,5 +1,7 @@ # This workflow runs every weekday at 15:00 UTC (8AM PDT) name: Daily CI +permissions: + contents: read on: schedule: @@ -18,3 +20,16 @@ jobs: uses: ./.github/workflows/ci_test_examples.yml secrets: CI_AWS_ACCOUNT_ID: ${{ secrets.CI_AWS_ACCOUNT_ID }} + notify: + needs: + [ + daily-ci-go-v3-test, + daily-ci-go-v4-test, + daily-ci-go-migration-examples-test, + ] + if: ${{ failure() }} + uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main + with: + message: "Daily CI failed on `${{ github.repository }}`. View run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_CI }} diff --git a/.github/workflows/issue-notification.yml b/.github/workflows/issue-notification.yml new file mode 100644 index 0000000..4be8d1d --- /dev/null +++ b/.github/workflows/issue-notification.yml @@ -0,0 +1,25 @@ +name: Issue Created Notification +permissions: + contents: read +on: + issues: + types: [opened, reopened] + issue_comment: + types: [created] + +jobs: + notify-issue: + if: github.event_name == 'issues' + uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main + with: + message: "New github issue `${{ github.event.issue.title }}`. Link: ${{ github.event.issue.html_url }}" + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_GHI }} + + notify-comment: + if: github.event_name == 'issue_comment' && !github.event.issue.pull_request + uses: aws/aws-cryptographic-material-providers-library/.github/workflows/slack-notification.yml@main + with: + message: "New comment on issue `${{ github.event.issue.title }}`. Link: ${{ github.event.comment.html_url }}" + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_GHI }} \ No newline at end of file