From c14cd20ec4e0ac96885e7f0280c594545be7e6cb Mon Sep 17 00:00:00 2001 From: Chris Tran Date: Thu, 16 Jan 2025 12:09:40 -0600 Subject: [PATCH] ci: fix publish step check before tagging --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c47b28..0925641 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,10 +26,11 @@ jobs: - uses: katyo/publish-crates@v2 with: registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + id: publish-crates if: ${{ steps.release.outputs.release_created }} # https://github.com/googleapis/release-please-action?tab=readme-ov-file#creating-majorminor-tags - name: Tag versions - if: ${{ steps.release.outputs.release_created && fromJSON(steps.publish-crates.outputs.published).* }} + if: ${{ steps.release.outputs.release_created && steps.publish-crates.outcome == 'success' }} run: | git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com