From 61ebb53f14f3848358b81a8d6c1d79c3cd3b93b1 Mon Sep 17 00:00:00 2001 From: Eric Willhoit Date: Fri, 13 Feb 2026 14:40:06 -0600 Subject: [PATCH 1/4] feat: announce release skip --- .github/workflows/create-github-release.yml | 33 +++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/create-github-release.yml b/.github/workflows/create-github-release.yml index e7d0395..a6c14cf 100644 --- a/.github/workflows/create-github-release.yml +++ b/.github/workflows/create-github-release.yml @@ -93,6 +93,7 @@ jobs: output-file: ${{ steps.prereleaseTag.outputs.tag && 'false' || 'CHANGELOG.md' }} # If prerelease, do not write the changelog file - name: Create Github Release + id: create-github-release uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 if: ${{ steps.changelog.outputs.skipped == 'false' }} with: @@ -103,3 +104,35 @@ jobs: prerelease: ${{ steps.prereleaseTag.outputs.tag && 'true' || 'false' }} token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} skipIfReleaseExists: true + + - name: Announce Failure + id: slack + if: ${{ steps.create-github-release.outcome == 'success' && steps.create-github-release.outputs.id == '' }} + uses: slackapi/slack-github-action@v1.26.0 + env: + # for non-CLI-team-owned plugins, you can send this anywhere you like + SLACK_WEBHOOK_URL: ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + with: + # Payload can be visually tested here: https://app.slack.com/block-kit-builder/T01GST6QY0G#%7B%22blocks%22:%5B%5D%7D + # Only copy over the "blocks" array to the Block Kit Builder + payload: | + { + "text": "Workflow \"${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }}", + "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": ":uno-skip: Github Release was skipped in ${{ github.event.workflow_run.repository.name }}! :uno-skip:" + } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Repo:* ${{ github.event.workflow_run.repository.html_url }}\n*Workflow name:* `${{ github.event.workflow_run.name }}`\n*Job url:* ${{ github.event.workflow_run.html_url }}" + } + } + ] + } From 7319f5a27c6225947e7b7bad64f631af4a0d1b8e Mon Sep 17 00:00:00 2001 From: Eric Willhoit Date: Fri, 13 Feb 2026 14:48:14 -0600 Subject: [PATCH 2/4] fix: if logic --- .github/workflows/create-github-release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-github-release.yml b/.github/workflows/create-github-release.yml index a6c14cf..6bd6f44 100644 --- a/.github/workflows/create-github-release.yml +++ b/.github/workflows/create-github-release.yml @@ -93,7 +93,6 @@ jobs: output-file: ${{ steps.prereleaseTag.outputs.tag && 'false' || 'CHANGELOG.md' }} # If prerelease, do not write the changelog file - name: Create Github Release - id: create-github-release uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 if: ${{ steps.changelog.outputs.skipped == 'false' }} with: @@ -105,9 +104,9 @@ jobs: token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} skipIfReleaseExists: true - - name: Announce Failure + - name: Announce if Github Release was skipped id: slack - if: ${{ steps.create-github-release.outcome == 'success' && steps.create-github-release.outputs.id == '' }} + if: ${{ steps.changelog.outputs.skipped == 'true' }} uses: slackapi/slack-github-action@v1.26.0 env: # for non-CLI-team-owned plugins, you can send this anywhere you like From c0a5673628bf5a8617452061f5db3221ab9d5ecc Mon Sep 17 00:00:00 2001 From: Eric Willhoit Date: Fri, 13 Feb 2026 15:00:40 -0600 Subject: [PATCH 3/4] chore: events not on workflow_call --- .github/workflows/create-github-release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-github-release.yml b/.github/workflows/create-github-release.yml index 6bd6f44..982f8c9 100644 --- a/.github/workflows/create-github-release.yml +++ b/.github/workflows/create-github-release.yml @@ -117,20 +117,19 @@ jobs: # Only copy over the "blocks" array to the Block Kit Builder payload: | { - "text": "Workflow \"${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }}", "blocks": [ { "type": "header", "text": { "type": "plain_text", - "text": ":uno-skip: Github Release was skipped in ${{ github.event.workflow_run.repository.name }}! :uno-skip:" + "text": ":uno-skip: Github Release was skipped in ${{ github.repository }}! :uno-skip:" } }, { "type": "section", "text": { "type": "mrkdwn", - "text": "*Repo:* ${{ github.event.workflow_run.repository.html_url }}\n*Workflow name:* `${{ github.event.workflow_run.name }}`\n*Job url:* ${{ github.event.workflow_run.html_url }}" + "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 }}" } } ] From 5c17ee91aa6727d67b8ad3670d838e026989ba96 Mon Sep 17 00:00:00 2001 From: Eric Willhoit Date: Fri, 13 Feb 2026 15:08:45 -0600 Subject: [PATCH 4/4] chore: skip red --- .github/workflows/create-github-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-github-release.yml b/.github/workflows/create-github-release.yml index 982f8c9..a7acdb7 100644 --- a/.github/workflows/create-github-release.yml +++ b/.github/workflows/create-github-release.yml @@ -122,7 +122,7 @@ jobs: "type": "header", "text": { "type": "plain_text", - "text": ":uno-skip: Github Release was skipped in ${{ github.repository }}! :uno-skip:" + "text": ":uno-skip-red: Github Release was skipped in ${{ github.repository }}! :uno-skip-red:" } }, {