Skip to content

Commit 455bb1f

Browse files
authored
Stop publish-sdk being skipped on release (#121)
1 parent 36a1419 commit 455bb1f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/sdk.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ jobs:
155155
name: Publish fvtk-sdk to PyPI (trusted publishing)
156156
# Release-only. Requires a PyPI trusted publisher on project `fvtk-sdk`
157157
# bound to repo pyvista/fvtk, workflow sdk.yml, environment pypi-sdk.
158-
if: github.event_name == 'release'
158+
# always() is REQUIRED: the PR-only `changes` job is skipped on release, and
159+
# without a status function that skip propagates down the needs chain and
160+
# silently skips this publish (it did, on 9.6.2.0rc2). Gate explicitly on the
161+
# release event AND build-sdk success instead.
162+
if: ${{ always() && github.event_name == 'release' && needs.build-sdk.result == 'success' }}
159163
needs: [build-sdk]
160164
runs-on: ${{ vars.FVTK_RUNNER_LINUX_SMALL || 'ubuntu-latest' }}
161165
environment:

0 commit comments

Comments
 (0)