diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc8dc3d1..d1eba1dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -194,11 +194,10 @@ jobs: create-release: needs: [update-packages, create-metadata, publish-pypi, publish-npm] if: | - needs.update-packages.outputs.changes_made == 'true' && - (always() && - (needs.publish-pypi.result == 'success' || needs.publish-npm.result == 'skipped') && - (needs.publish-pypi.result == 'skipped' || needs.publish-npm.result == 'success') && - (needs.publish-pypi.result == 'success' || needs.publish-npm.result == 'success')) + (needs.update-packages.outputs.changes_made == 'true' && always()) && + ((needs.publish-pypi.result == 'success' && needs.publish-npm.result == 'skipped') || + (needs.publish-pypi.result == 'skipped' && needs.publish-npm.result == 'success') || + (needs.publish-pypi.result == 'success' && needs.publish-npm.result == 'success')) runs-on: ubuntu-latest environment: release permissions: