File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 2222 - name : Checkout
2323 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2424
25+ - name : Validate plugin.json matches tag
26+ env :
27+ TAG_VERSION : ${{ github.ref_name }}
28+ run : |
29+ PLUGIN_VERSION=$(python3 -c "import json; print(json.load(open('.claude-plugin/plugin.json'))['version'])")
30+ TAG_BARE="${TAG_VERSION#v}"
31+ if [[ "${TAG_BARE}" != "${PLUGIN_VERSION}" ]]; then
32+ echo "::error file=.claude-plugin/plugin.json::Tag ${TAG_VERSION} does not match plugin.json version ${PLUGIN_VERSION}"
33+ exit 1
34+ fi
35+ echo "Version validated: ${TAG_VERSION} matches plugin.json ${PLUGIN_VERSION}"
36+
2537 - name : Get version from tag
2638 id : version
2739 run : echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments