From 5209813b918799ab069db58d2f900117ffa4dd42 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Tue, 2 Dec 2025 18:31:01 -0600 Subject: [PATCH] better logic for directory render --- .gitea/workflows/render-manifests.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/render-manifests.yaml b/.gitea/workflows/render-manifests.yaml index 40a55430e..4e91d6506 100644 --- a/.gitea/workflows/render-manifests.yaml +++ b/.gitea/workflows/render-manifests.yaml @@ -66,11 +66,11 @@ jobs: run: | cd ${MAIN_DIR} - RENDER_DIR=() + RENDER_DIR_LIST=() if [ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]; then echo ">> Triggered on dispatch, will check all paths .." - RENDER_DIR+=$(ls clusters/cl01tl/helm/) + RENDER_DIR_LIST+=$(ls clusters/cl01tl/helm/) else echo ">> Checking for changes ..." @@ -80,7 +80,7 @@ jobs: echo ">> Changes detected:" echo "$GIT_DIFF" for path in $GIT_DIFF; do - RENDER_DIR+=$(echo "$path" | awk -F '/' '{print $4}') + RENDER_DIR_LIST+=$(echo "$path" | awk -F '/' '{print $4}') done else @@ -90,7 +90,7 @@ jobs: fi echo ">> Directories to Render:" - RENDER_DIR=($(printf "%s\n" "${RENDER_DIR[@]}" | sort -u)) + RENDER_DIR=($(printf "%s\n" "${RENDER_DIR_LIST[@]}" | sort -u)) echo "$RENDER_DIR" echo "-----"