Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/publish-mcp-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,16 @@ jobs:
with:
version: v3.20.2

- name: Refuse overwrite of existing chart version
run: |
set -euo pipefail
VER=$(grep -E "^version:" Chart.yaml | head -1 | awk "{print \$2}")
echo "Chart version is ${VER}"
# Best-effort: if the OCI tag already resolves, abort instead of overwriting.
if helm pull oci://ghcr.io/${{ github.repository_owner }}/charts/$(basename $(pwd)) --version "${VER}" --destination /tmp/helm-check 2>/dev/null; then
echo "::error::version ${VER} already published"
exit 1
fi
- name: Package and push Helm chart (OCI / Docker Hub)
run: |
set -euo pipefail
Expand Down
Loading