From 5198c8c9fe261074e8f2f7db030c3d82adcd03ae Mon Sep 17 00:00:00 2001 From: rishav-karanjit Date: Thu, 8 Jan 2026 16:50:16 -0800 Subject: [PATCH] m --- .github/workflows/ci.yml | 17 +++++++++++++++++ .github/workflows/issue-notification.yml | 24 ++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/issue-notification.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6509f392..6d463713 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -206,3 +206,20 @@ jobs: JAVA_ENV_VERSION: ${{ matrix.platform.distribution }}${{ matrix.version }} JAVA_NUMERIC_VERSION: ${{ matrix.version }} GITHUB_EVENT_NAME: $GITHUB_EVENT_NAME + notify: + needs: + [ + staticAnalysis, + vectorTests, + vectorTestsMasterKeyProvider, + netVectorTests, + generateTestVectors, + releaseCI, + validateCI + ] + if: ${{ failure() && github.event_name == 'schedule' }} + 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 00000000..d0f9ce8d --- /dev/null +++ b/.github/workflows/issue-notification.yml @@ -0,0 +1,24 @@ +name: Issue Created Notification +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