chore: send slack notification when Github Action fails (#28310)
chore: send slack notification when github action fails
This commit is contained in:
parent
3f63283eda
commit
9fe46bb038
|
@ -71,3 +71,12 @@ jobs:
|
|||
with:
|
||||
command: build
|
||||
args: -p solana-client --target ${{ matrix.target }}
|
||||
- name: Send Slack notifiaction
|
||||
if: failure()
|
||||
env:
|
||||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
|
||||
uses: voxmedia/github-action-slack-notify-build@v1
|
||||
with:
|
||||
channel: ${{ secrets.SLACK_CHANNEL }}
|
||||
status: FAILED
|
||||
color: danger
|
||||
|
|
|
@ -68,3 +68,13 @@ jobs:
|
|||
./build.sh
|
||||
env:
|
||||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
||||
|
||||
- name: Send Slack notifiaction
|
||||
if: failure()
|
||||
env:
|
||||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
|
||||
uses: voxmedia/github-action-slack-notify-build@v1
|
||||
with:
|
||||
channel: ${{ secrets.SLACK_CHANNEL }}
|
||||
status: FAILED
|
||||
color: danger
|
||||
|
|
|
@ -25,3 +25,12 @@ jobs:
|
|||
chmod +x ./ci/export-github-repo.sh
|
||||
./ci/export-github-repo.sh web3.js/ solana-web3.js
|
||||
shell: bash
|
||||
- name: Send Slack notifiaction
|
||||
if: failure()
|
||||
env:
|
||||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
|
||||
uses: voxmedia/github-action-slack-notify-build@v1
|
||||
with:
|
||||
channel: ${{ secrets.SLACK_CHANNEL }}
|
||||
status: FAILED
|
||||
color: danger
|
||||
|
|
|
@ -17,3 +17,17 @@ jobs:
|
|||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
|
||||
|
||||
send-slack-notification:
|
||||
runs-on: ubuntu-20.04
|
||||
needs:
|
||||
- release-artifacts
|
||||
if: failure()
|
||||
steps:
|
||||
- env:
|
||||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
|
||||
uses: voxmedia/github-action-slack-notify-build@v1
|
||||
with:
|
||||
channel: ${{ secrets.SLACK_CHANNEL }}
|
||||
status: FAILED
|
||||
color: danger
|
||||
|
|
Loading…
Reference in New Issue