Skip to content

Commit b752cfa

Browse files
authored
chore: Alert on failed CLI and Scaffold releases (#21640)
We do this for plugins already https://github.com/cloudquery/cloudquery/blob/f1b82a2cd291a47b912b3e9d745672692e0b20c8/.github/workflows/publish_plugin_to_hub.yml#L360 Should help catch #21639 sooner
1 parent f1b82a2 commit b752cfa

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/release_cli.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,13 @@ jobs:
128128
body: Updates the CLI latest version to ${{steps.split.outputs.version}}
129129
labels: automerge
130130
author: cq-bot <cq-bot@users.noreply.github.com>
131+
- name: Slack Notify
132+
uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2
133+
if: always()
134+
with:
135+
status: ${{ job.status }}
136+
notify_when: "failure"
137+
notification_title: "Failed to release CLI ${{ steps.split.outputs.version }}"
138+
footer: "<{repo_url}|{repo}>"
139+
env:
140+
SLACK_WEBHOOK_URL: ${{ secrets.ALERTS_INTEGRATIONS_SLACK_WEBHOOK_URL }}

.github/workflows/release_scaffold.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,13 @@ jobs:
108108
body: Updates Scaffold latest version to ${{steps.split.outputs.version}}
109109
labels: automerge
110110
author: cq-bot <cq-bot@users.noreply.github.com>
111+
- name: Slack Notify
112+
uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2
113+
if: always()
114+
with:
115+
status: ${{ job.status }}
116+
notify_when: "failure"
117+
notification_title: "Failed to release Scaffold ${{ steps.split.outputs.version }}"
118+
footer: "<{repo_url}|{repo}>"
119+
env:
120+
SLACK_WEBHOOK_URL: ${{ secrets.ALERTS_INTEGRATIONS_SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)