Skip to content

Commit 8e21f1a

Browse files
committed
chore: align release follow-up guards
1 parent 4fe92f5 commit 8e21f1a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,18 +162,18 @@ jobs:
162162
git fetch origin main
163163
git reset --hard "$COMMIT_HASH"
164164
- name: Publish with Sampo
165-
if: steps.check-changes.outputs.committed == 'true'
165+
if: steps.commit-release.outputs.commit-hash != ''
166166
env:
167167
GITHUB_TOKEN: ${{ steps.releaser.outputs.token }}
168168
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
169169
run: sampo publish -- --yes
170170

171171
- name: Push tags
172-
if: steps.check-changes.outputs.committed == 'true'
172+
if: steps.commit-release.outputs.commit-hash != ''
173173
run: git push origin --tags
174174

175175
- name: Create GitHub Release
176-
if: steps.check-changes.outputs.committed == 'true'
176+
if: steps.commit-release.outputs.commit-hash != ''
177177
env:
178178
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
179179
NEW_VERSION: ${{ steps.sampo-release.outputs.new_version }}

0 commit comments

Comments
 (0)