Skip to content

Commit 0f5e878

Browse files
Alert the team on Slack when the weekly release fails
1 parent 104b0ce commit 0f5e878

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/weekly-release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,25 @@ jobs:
7373
with:
7474
version: ${{ needs.version.outputs.next }}
7575
prerelease: true
76+
77+
notify:
78+
name: Report a broken weekly release
79+
if: always() && (needs.version.result == 'failure' || needs.release.result == 'failure')
80+
runs-on: ubuntu-latest
81+
needs:
82+
- version
83+
- release
84+
steps:
85+
- name: "Send Message"
86+
uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d # v4.0.0
87+
env:
88+
MESSAGE: "_*Weekly RIE release failed*_ :turtle-headache::broken_heart:\n\nNo new pre-release was published, so CVE remediation is stalled until this is fixed. Investigate the failed workflow run <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here> :mag_right:"
89+
with:
90+
webhook: ${{ secrets.COSY_WEBHOOK_URL }}
91+
webhook-type: incoming-webhook
92+
payload: |
93+
blocks:
94+
- type: "section"
95+
text:
96+
type: "mrkdwn"
97+
text: "${{ env.MESSAGE }}"

0 commit comments

Comments
 (0)