Skip to content

Commit 7319f5a

Browse files
committed
fix: if logic
1 parent 61ebb53 commit 7319f5a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/create-github-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ jobs:
9393
output-file: ${{ steps.prereleaseTag.outputs.tag && 'false' || 'CHANGELOG.md' }} # If prerelease, do not write the changelog file
9494

9595
- name: Create Github Release
96-
id: create-github-release
9796
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
9897
if: ${{ steps.changelog.outputs.skipped == 'false' }}
9998
with:
@@ -105,9 +104,9 @@ jobs:
105104
token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
106105
skipIfReleaseExists: true
107106

108-
- name: Announce Failure
107+
- name: Announce if Github Release was skipped
109108
id: slack
110-
if: ${{ steps.create-github-release.outcome == 'success' && steps.create-github-release.outputs.id == '' }}
109+
if: ${{ steps.changelog.outputs.skipped == 'true' }}
111110
uses: slackapi/slack-github-action@v1.26.0
112111
env:
113112
# for non-CLI-team-owned plugins, you can send this anywhere you like

0 commit comments

Comments
 (0)