File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 5656 fi
5757 echo "VERSION=$TAG" >> $GITHUB_OUTPUT
5858
59+ - name : Extract image tag from version
60+ id : image-tag
61+ run : |
62+ # Extract the image tag from the version
63+ echo "IMAGE_TAG=${IMAGE_TAG#v}" >> $GITHUB_OUTPUT
64+
5965 - name : Install dependencies
6066 run : |
6167 sudo apt-get update && sudo apt-get install -y jq
6874 # Update the server.json with the correct Docker image reference
6975 # (note the image tag does not include the "v" prefix)
7076 jq --arg version "${{ steps.version.outputs.VERSION }}" \
71- --arg image "grafana/mcp-grafana:${{ steps.version .outputs.VERSION#v }}" \
77+ --arg image "grafana/mcp-grafana:${{ steps.image-tag .outputs.IMAGE_TAG }}" \
7278 '.packages[0].version = $version |
7379 .packages[0].identifier = $image |
7480 .version = $version' server.json > server.json.tmp
You can’t perform that action at this time.
0 commit comments