Skip to content

Commit

Permalink
Fix publish step
Browse files Browse the repository at this point in the history
Add the same fix with conditionals to the publish step
  • Loading branch information
G-D-Petrov authored and aseaton committed Sep 1, 2023
1 parent b1d5db7 commit 313bae5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ jobs:

publish:
needs: [common_config, can_merge]
if: needs.common_config.outputs.pypi_publish && needs.common_config.outputs.publish_env
if: |
always() &&
!failure() &&
!cancelled() &&
(needs.common_config.outputs.pypi_publish && needs.common_config.outputs.publish_env)
uses: ./.github/workflows/publish.yml
secrets: inherit
permissions: {contents: write}
Expand Down

0 comments on commit 313bae5

Please sign in to comment.