diff --git a/.github/workflows/on_release.yml b/.github/workflows/on_release.yml index b0fe8c0..7825448 100644 --- a/.github/workflows/on_release.yml +++ b/.github/workflows/on_release.yml @@ -53,3 +53,15 @@ jobs: integration: 'nri-${{ env.INTEGRATION }}' # Required, with nri- prefix packageLocation: repo upgrade: false + + notify-failure: + if: ${{ always() && failure() }} + needs: [publish-to-s3] + runs-on: ubuntu-latest + steps: + - name: Notify failure via Slack + uses: archive/github-actions-slack@master + with: + slack-bot-user-oauth-access-token: ${{ secrets.COREINT_SLACK_TOKEN }} + slack-channel: ${{ secrets.COREINT_SLACK_CHANNEL }} + slack-text: "❌ `${{ env.ORIGINAL_REPO_NAME }}`: [release pipeline failed](${{ github.server_url }}/${{ env.ORIGINAL_REPO_NAME }}/actions/runs/${{ github.run_id }})."