forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: send slack msg on nightly build failure (MystenLabs#2738)
- Loading branch information
1 parent
1f97906
commit ed3d6ad
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,3 +89,31 @@ jobs: | |
cargo hakari disable | ||
cargo hakari remove-deps -y | ||
RUSTC_BOOTSTRAP=1 cargo udeps | ||
report-status: | ||
name: Report Status | ||
runs-on: [self-hosted, self-hosted-ubuntu] | ||
if: always() | ||
needs: [beta, release, cargo-udeps] | ||
steps: | ||
- name: Post to slack | ||
uses: slackapi/[email protected] | ||
uses: technote-space/workflow-conclusion-action@v3 | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure | ||
with: | ||
channel-id: 'build-failures-sui' | ||
payload: | | ||
{ | ||
"text": "Workflow ${{ github.workflow }} failed\nLogs are here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "Workflow ${{ github.workflow }} failed\nLogs are here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
} | ||
} | ||
] | ||
} |