Skip to content

Commit 6bda621

Browse files
remyleonedevtools-ci-cd
andauthored
ci: add a ping when sweepers are failing (#4574)
Co-authored-by: devtools-ci-cd <[email protected]>
1 parent bc41d89 commit 6bda621

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/nightly.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)