Skip to content

Commit e545918

Browse files
committed
* In .github/workflows/release.yml
- in create-release job condition - check for all combinations of publish results that should lead to a release creation - npm = success / pypi = skipped - npm = skipped / pypi = success - npm = success / pypi = success
1 parent 7061c36 commit e545918

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,10 @@ jobs:
194194
create-release:
195195
needs: [update-packages, create-metadata, publish-pypi, publish-npm]
196196
if: |
197-
needs.update-packages.outputs.changes_made == 'true' &&
198-
(always() &&
199-
(needs.publish-pypi.result == 'success' || needs.publish-npm.result == 'skipped') &&
200-
(needs.publish-pypi.result == 'skipped' || needs.publish-npm.result == 'success') &&
201-
(needs.publish-pypi.result == 'success' || needs.publish-npm.result == 'success'))
197+
(needs.update-packages.outputs.changes_made == 'true' && always()) &&
198+
((needs.publish-pypi.result == 'success' && needs.publish-npm.result == 'skipped') ||
199+
(needs.publish-pypi.result == 'skipped' && needs.publish-npm.result == 'success') ||
200+
(needs.publish-pypi.result == 'success' && needs.publish-npm.result == 'success'))
202201
runs-on: ubuntu-latest
203202
environment: release
204203
permissions:

0 commit comments

Comments
 (0)