mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-02-23 04:38:06 +00:00
[no-relnote] Update Slack notification action step
Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
This commit is contained in:
parent
8713a173fe
commit
1273f879cc
15
.github/workflows/e2e.yaml
vendored
15
.github/workflows/e2e.yaml
vendored
@ -85,15 +85,14 @@ jobs:
|
|||||||
make -f tests/e2e/Makefile test
|
make -f tests/e2e/Makefile test
|
||||||
|
|
||||||
- name: Send Slack alert notification
|
- name: Send Slack alert notification
|
||||||
id: slack
|
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: slackapi/slack-github-action@v2.0.0
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
env:
|
|
||||||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
|
|
||||||
SUMMARY_URL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
|
|
||||||
with:
|
with:
|
||||||
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
|
method: chat.postMessage
|
||||||
slack-message: |
|
token: ${{ secrets.SLACK_BOT_TOKEN }}
|
||||||
:x: On repository ${{ github.repository }} the Workflow *${{ github.workflow }}* has failed.
|
payload: |
|
||||||
|
channel: ${{ secrets.SLACK_CHANNEL_ID }}
|
||||||
|
text: |
|
||||||
|
:x: On repository ${{ github.repository }}, the Workflow *${{ github.workflow }}* has failed.
|
||||||
|
|
||||||
Details: ${{ env.SUMMARY_URL }}
|
Details: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
Loading…
Reference in New Issue
Block a user