From 198da5f492a2a8fab69b581bc7ecc9f2fca001bc Mon Sep 17 00:00:00 2001 From: Tracewebstudio Dev Date: Fri, 1 May 2026 18:46:04 +0200 Subject: [PATCH] ci: skip gitops update if GITEOPS_REPO secret not set --- .gitea/workflows/build.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 2071b40..8ad3d10 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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"