Skip to content

Commit b83a119

Browse files
authored
ci: fix publish step check before tagging (#39)
1 parent 0002a47 commit b83a119

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ jobs:
2626
- uses: katyo/publish-crates@v2
2727
with:
2828
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
29+
id: publish-crates
2930
if: ${{ steps.release.outputs.release_created }}
3031
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#creating-majorminor-tags
3132
- name: Tag versions
32-
if: ${{ steps.release.outputs.release_created && fromJSON(steps.publish-crates.outputs.published).* }}
33+
if: ${{ steps.release.outputs.release_created && steps.publish-crates.outcome == 'success' }}
3334
run: |
3435
git config user.name github-actions[bot]
3536
git config user.email 41898282+github-actions[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)