From 03722952de02a610655be018469ce3f9e8b0d837 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Thu, 9 Apr 2026 17:57:51 +0100 Subject: [PATCH] Don't skip ``pypi-publish`` job if ``check-permissions`` was skipped In GitHub Actions, the default behaviour for any job is to run only if all its direct and indirect dependencies have a status of `success`. On a `release` event, the `check-permissions` job is skipped because of its `if:` condition. The `build-python-packages` job (which depends on `check-permissions`) runs anyway because it has an explicit `if:` condition which overrides the default behaviour. The `pypi-publish` job (which depends on `build-python-packages`) was instead skipped because id had no `if:` condition and one of its ancestors (`check-permissions`) was skipped. --- .github/workflows/publish_artifacts.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish_artifacts.yaml b/.github/workflows/publish_artifacts.yaml index e15213579e9..350a5686e34 100644 --- a/.github/workflows/publish_artifacts.yaml +++ b/.github/workflows/publish_artifacts.yaml @@ -67,6 +67,7 @@ jobs: path: dist/ pypi-publish: + if: always() && needs.build-python-packages.result == 'success' needs: [build-python-packages] name: Upload packages to PyPI runs-on: ubuntu-latest