Skip to content

Commit 9c1f996

Browse files
committed
fix: 👷 use the has_released output to run or not
1 parent 2833cdf commit 9c1f996

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release-package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions: read-all
1010

1111
jobs:
1212
release-package:
13+
# This job outputs a env variable called `has_released` that is `true` if the release was successful.
1314
# Only give permissions for this job.
1415
permissions:
1516
contents: write
@@ -30,7 +31,7 @@ jobs:
3031
name: pypi
3132
needs:
3233
- release-package
33-
if: github.ref_type == 'tag'
34+
if: ${{ needs.release-package.outputs.has_released == 'true' }}
3435
steps:
3536
- name: Download built distributions
3637
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0

0 commit comments

Comments
 (0)