Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Avoid committing Helm chart on release runs

rcourtman7c15159e67e7
diff --git a/.github/workflows/helm-pages.yml b/.github/workflows/helm-pages.yml
index 9b54f68197..57143fb542 100644
--- a/.github/workflows/helm-pages.yml
+++ b/.github/workflows/helm-pages.yml
@@ -73,13 +73,15 @@ jobs:
sed -i "s/^version: .*/version: $VERSION/" deploy/helm/pulse/Chart.yaml
sed -i "s/^appVersion: .*/appVersion: \"$VERSION\"/" deploy/helm/pulse/Chart.yaml
- # Commit if changed (for manual workflow runs)
- if ! git diff --quiet deploy/helm/pulse/Chart.yaml; then
+ # Commit only on workflow_dispatch (release runs are detached HEAD)
+ if [ "${GITHUB_EVENT_NAME}" != "release" ] && ! git diff --quiet deploy/helm/pulse/Chart.yaml; then
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add deploy/helm/pulse/Chart.yaml
git commit -m "Auto-update Helm chart version to $VERSION"
git push
+ elif [ "${GITHUB_EVENT_NAME}" = "release" ] && ! git diff --quiet deploy/helm/pulse/Chart.yaml; then
+ echo "Chart.yaml updated for packaging, skipping commit (detached HEAD on release event)."
fi
- name: Validate Helm chart