File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -107,3 +107,21 @@ jobs:
107107 SCW_SECRET_KEY : ${{ secrets.SCW_SECRET_KEY }}
108108 SCW_DEFAULT_ORGANIZATION_ID : ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
109109 SCW_DEFAULT_PROJECT_ID : ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
110+ - name : Ping on failure
111+ if : ${{ failure() }}
112+ run : |
113+ curl -X POST -H 'Content-type: application/json' \
114+ --data '{
115+ "blocks": [
116+ {
117+ "type": "section",
118+ "text": {
119+ "type": "mrkdwn",
120+ "text": "'"Scaleway CLI sweepers in Nightly workflow failed: <https://github.com/scaleway/scaleway-cli/actions/runs/${GITHUB_RUN_ID}>"'"
121+ }
122+ }
123+ ]
124+ }' \
125+ ${SLACK_WEBHOOK_NIGHTLY};
126+ env :
127+ SLACK_WEBHOOK_NIGHTLY : ${{ secrets.SLACK_WEBHOOK_NIGHTLY }}
You can’t perform that action at this time.
0 commit comments