Skip to content

chore(CI): add slack notifications #3196

chore(CI): add slack notifications

chore(CI): add slack notifications #3196

Workflow file for this run

name: Continuous Integration Workflow
permissions:
contents: read
id-token: write
on:
pull_request:
push:
# This workflow runs every weekday at 15:00 UTC (8AM PDT)
schedule:
- cron: '00 15 * * 1-5'
jobs:
Static_Analysis:
uses: ./.github/workflows/static-analysis.yml
Build:
strategy:
fail-fast: false # TODO: Set to true once CI is stable
matrix:
version: [ 8, 11, 17 ]
distribution: [ corretto, temurin ] # TODO: Add OpenJDK
uses: ./.github/workflows/build.yml
secrets: inherit
with:
version: ${{ matrix.version }}
distribution: ${{ matrix.distribution }}
Examples:
uses: ./.github/workflows/examples.yml
secrets: inherit
with:
version: 17
distribution: corretto
notify:
needs:
[
Static_Analysis,
Build,
Examples,
]
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 }}