From e042ebdf44ef6d9fa4f7501edf68d231bb446909 Mon Sep 17 00:00:00 2001 From: Alex Khromychenko <25633194+alexkhromychenko@users.noreply.github.com> Date: Tue, 28 May 2024 15:21:44 -0400 Subject: [PATCH] BUD-3634 Copy changes from original repo --- action.yml | 3 --- kustomize-build.sh | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/action.yml b/action.yml index fbae135..7f8d5d1 100644 --- a/action.yml +++ b/action.yml @@ -95,9 +95,6 @@ runs: version: ${{ inputs.helm-version }} # default is latest (stable) id: install - - name: Install yq - uses: mikefarah/yq@v4.42.1 - - name: Set Git Author shell: bash run: | diff --git a/kustomize-build.sh b/kustomize-build.sh index 65658dd..a83abf2 100755 --- a/kustomize-build.sh +++ b/kustomize-build.sh @@ -38,7 +38,7 @@ pushd "${RENDER_DIR}" || exit 1 if [[ -s "${RENDER_FILE}" ]]; then # Split the rendered file into individual files for each resource # Invalid GitHub artifact path name characters: Double quote ", Colon :, Less than <, Greater than >, Vertical bar |, Asterisk *, Question mark ? - yq -s '.kind + "-" + (.apiVersion | sub("/", "_")) + "-" + (.metadata.name | sub("[:<>|*?/\\]", "_")) + ".yaml"' < "${RENDER_FILE}" + yq -s '.kind + "-" + (.apiVersion | sub("/", "_")) + "-" + (.metadata.name | sub("[:<>|*?/]", "_")) + ".yaml"' < "${RENDER_FILE}" if is_debug; then echo "[debug] ls ${RENDER_DIR} post-yq"