File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -103,3 +103,34 @@ jobs:
103103 prerelease : ${{ steps.prereleaseTag.outputs.tag && 'true' || 'false' }}
104104 token : ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
105105 skipIfReleaseExists : true
106+
107+ - name : Announce if Github Release was skipped
108+ id : slack
109+ if : ${{ steps.changelog.outputs.skipped == 'true' }}
110+ uses : slackapi/slack-github-action@v1.26.0
111+ env :
112+ # for non-CLI-team-owned plugins, you can send this anywhere you like
113+ SLACK_WEBHOOK_URL : ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }}
114+ SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
115+ with :
116+ # Payload can be visually tested here: https://app.slack.com/block-kit-builder/T01GST6QY0G#%7B%22blocks%22:%5B%5D%7D
117+ # Only copy over the "blocks" array to the Block Kit Builder
118+ payload : |
119+ {
120+ "blocks": [
121+ {
122+ "type": "header",
123+ "text": {
124+ "type": "plain_text",
125+ "text": ":uno-skip-red: Github Release was skipped in ${{ github.repository }}! :uno-skip-red:"
126+ }
127+ },
128+ {
129+ "type": "section",
130+ "text": {
131+ "type": "mrkdwn",
132+ "text": "*Repo:* ${{ github.server_url }}/${{ github.repository }}\n*Workflow name:* `${{ github.workflow }}`\n*Run url:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
133+ }
134+ }
135+ ]
136+ }
You can’t perform that action at this time.
0 commit comments