ci: skip gitops update if GITEOPS_REPO secret not set
This commit is contained in:
parent
2a588b45d6
commit
09075087f0
1 changed files with 5 additions and 0 deletions
|
|
@ -239,6 +239,11 @@ jobs:
|
|||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
if [ -z "$GITEOPS_REPO" ]; then
|
||||
echo "GITEOPS_REPO secret not set, skipping GitOps update"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Clone gitops repo
|
||||
GITEOPS_DIR=$(mktemp -d)
|
||||
git clone "$GITEOPS_REPO" "$GITEOPS_DIR"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue