diff --git a/.github/workflows/add-labels-standardized.yaml b/.github/workflows/add-labels-standardized.yaml index 01aa8a15..28029693 100644 --- a/.github/workflows/add-labels-standardized.yaml +++ b/.github/workflows/add-labels-standardized.yaml @@ -15,3 +15,12 @@ jobs: ORG_MEMBERSHIP_TOKEN: ${{ secrets.ORG_MEMBERSHIP_TOKEN }} SENZING_MEMBERS: ${{ secrets.SENZING_MEMBERS }} uses: senzing-factory/build-resources/.github/workflows/add-labels-to-issue.yaml@v2 + + slack-notification: + needs: [add-issue-labels] + if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-issue-labels.outputs.job-status) }} + secrets: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v2 + with: + job-status: ${{ needs.add-issue-labels.outputs.job-status }} diff --git a/.github/workflows/add-to-project-app-server-dependabot.yaml b/.github/workflows/add-to-project-app-server-dependabot.yaml index 9b9ce003..8f7de9aa 100644 --- a/.github/workflows/add-to-project-app-server-dependabot.yaml +++ b/.github/workflows/add-to-project-app-server-dependabot.yaml @@ -14,3 +14,12 @@ jobs: uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@v2 with: project: ${{ vars.SENZING_PROJECT_APP_SERVER }} + + slack-notification: + needs: [add-to-project-dependabot] + if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-to-project-dependabot.outputs.job-status) }} + secrets: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v2 + with: + job-status: ${{ needs.add-to-project-dependabot.outputs.job-status }} diff --git a/.github/workflows/add-to-project-app-server.yaml b/.github/workflows/add-to-project-app-server.yaml index 0fc57891..ebb79988 100644 --- a/.github/workflows/add-to-project-app-server.yaml +++ b/.github/workflows/add-to-project-app-server.yaml @@ -18,3 +18,12 @@ jobs: classic: false project-number: ${{ vars.SENZING_PROJECT_APP_SERVER}} org: ${{ vars.SENZING_GITHUB_ACCOUNT_NAME }} + + slack-notification: + needs: [add-to-project] + if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.add-to-project.outputs.job-status) }} + secrets: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v2 + with: + job-status: ${{ needs.add-to-project.outputs.job-status }} diff --git a/.github/workflows/npm-build.yaml b/.github/workflows/npm-build.yaml index cacf4e3b..6a569ba9 100644 --- a/.github/workflows/npm-build.yaml +++ b/.github/workflows/npm-build.yaml @@ -8,6 +8,8 @@ permissions: jobs: npm-build: name: build, compile, and test angular components + outputs: + status: ${{ job.status }} runs-on: ubuntu-latest strategy: matrix: @@ -40,3 +42,12 @@ jobs: - name: ensure web components package compiles run: | npm run build:web + + slack-notification: + needs: [npm-build] + if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.npm-build.outputs.status ) && github.ref_name == github.event.repository.default_branch }} + secrets: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v2 + with: + job-status: ${{ needs.npm-build.outputs.status }}