Skip to content

Commit f77769c

Browse files
authored
fix: 👷 use the has_released output to run or not (#97)
# Description The `if` conditional doesn't work very well. Hopefully this works, but won't be able to see if it does until another release. No review needed.
1 parent 2833cdf commit f77769c

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)