File tree Expand file tree Collapse file tree 2 files changed +1
-99
lines changed Expand file tree Collapse file tree 2 files changed +1
-99
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,12 +3,9 @@ name: Publish MCP Registry
33on :
44 workflow_dispatch :
55 workflow_run :
6- workflows : ["Build "] # exact name of workflow 1
6+ workflows : ["Publish PyPI "] # exact name of PyPI workflow
77 types :
88 - completed
9- push :
10- tags :
11- - " v*"
129
1310concurrency :
1411 group : publish-${{ github.ref }}
5855 # Get current version from server.json
5956 CURRENT_VERSION=$(jq -r '.version' server.json)
6057 echo "Current version: $CURRENT_VERSION"
61-
62- # Check if version exists in registry
63- if curl -s "https://registry.modelcontextprotocol.io/v0/servers/io.github.robotmcp/ros-mcp-server" | jq -e ".version == \"$CURRENT_VERSION\"" > /dev/null; then
64- echo "Version $CURRENT_VERSION already exists in registry. Skipping publication."
65- echo "Server is already published with version $CURRENT_VERSION"
66- else
67- echo "Publication failed for unknown reason"
68- exit $PUBLISH_EXIT_CODE
69- fi
7058 fi
7159 fi
You can’t perform that action at this time.
0 commit comments