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.

Skip helm-docs commits during release workflows

rcourtman40de26a826f4
diff --git a/.github/workflows/helm-pages.yml b/.github/workflows/helm-pages.yml
index 699f9e2057..9b54f68197 100644
--- a/.github/workflows/helm-pages.yml
+++ b/.github/workflows/helm-pages.yml
@@ -45,12 +45,14 @@ jobs:
helm-docs
# Commit if README changed
- if ! git diff --quiet README.md; then
+ if [ "${GITHUB_EVENT_NAME}" != "release" ] && ! git diff --quiet README.md; then
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add README.md
git commit -m "Auto-update Helm chart documentation"
git push
+ elif [ "${GITHUB_EVENT_NAME}" = "release" ] && ! git diff --quiet README.md; then
+ echo "README.md updated by helm-docs but skipping commit because release workflows checkout a detached HEAD."
fi
cd ../../..