mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-17 23:53:24 +02:00
* 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
This commit is contained in:
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@@ -194,11 +194,10 @@ jobs:
|
|||||||
create-release:
|
create-release:
|
||||||
needs: [update-packages, create-metadata, publish-pypi, publish-npm]
|
needs: [update-packages, create-metadata, publish-pypi, publish-npm]
|
||||||
if: |
|
if: |
|
||||||
needs.update-packages.outputs.changes_made == 'true' &&
|
(needs.update-packages.outputs.changes_made == 'true' && always()) &&
|
||||||
(always() &&
|
((needs.publish-pypi.result == 'success' && needs.publish-npm.result == 'skipped') ||
|
||||||
(needs.publish-pypi.result == 'success' || needs.publish-npm.result == 'skipped') &&
|
(needs.publish-pypi.result == 'skipped' && needs.publish-npm.result == 'success') ||
|
||||||
(needs.publish-pypi.result == 'skipped' || needs.publish-npm.result == 'success') &&
|
(needs.publish-pypi.result == 'success' && needs.publish-npm.result == 'success'))
|
||||||
(needs.publish-pypi.result == 'success' || needs.publish-npm.result == 'success'))
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: release
|
environment: release
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
Reference in New Issue
Block a user