ci: skip gitops update if GITEOPS_REPO secret not set

This commit is contained in:
Tracewebstudio Dev 2026-05-01 18:45:53 +02:00
parent 86a2f15b0a
commit b3729541f9

View file

@ -70,6 +70,11 @@ jobs:
run: |
set -euo pipefail
if [ -z "$GITEOPS_REPO" ]; then
echo "GITEOPS_REPO secret not set, skipping GitOps update"
exit 0
fi
GITEOPS_DIR=$(mktemp -d)
git clone "$GITEOPS_REPO" "$GITEOPS_DIR"
cd "$GITEOPS_DIR"