From 9c1f996e4ca54c8ed348dde552ed2e87ca0c63a0 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Thu, 3 Jul 2025 11:58:15 -0400 Subject: [PATCH] fix: :construction_worker: use the `has_released` output to run or not --- .github/workflows/release-package.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index f98e893..dfb11ec 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -10,6 +10,7 @@ permissions: read-all jobs: release-package: + # This job outputs a env variable called `has_released` that is `true` if the release was successful. # Only give permissions for this job. permissions: contents: write @@ -30,7 +31,7 @@ jobs: name: pypi needs: - release-package - if: github.ref_type == 'tag' + if: ${{ needs.release-package.outputs.has_released == 'true' }} steps: - name: Download built distributions uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0