From 5f5643f53ac15bb6e21f0016a4b88d0163427ec1 Mon Sep 17 00:00:00 2001 From: barrfalk Date: Mon, 8 Jan 2024 16:31:01 -0800 Subject: [PATCH] Update .push-helm-chart.yml --- .github/workflows/.push-helm-chart.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/.push-helm-chart.yml b/.github/workflows/.push-helm-chart.yml index 6960145a..42459682 100644 --- a/.github/workflows/.push-helm-chart.yml +++ b/.github/workflows/.push-helm-chart.yml @@ -95,9 +95,14 @@ jobs: BRANCH_NAME="update-helm-chart-${{ inputs.tag }}" git checkout -b $BRANCH_NAME - - name: Copy Helm Chart + - name: Copy folder from source to target run: | - cp -r ./charts/* target-repo/helm-chart/ + if [ -d "source-repo/charts" ]; then + mkdir -p target-repo/helm-chart + cp -r source-repo/charts/* target-repo/helm-chart/ + else + echo "Directory 'charts' does not exist in source repository" + exit 1 - name: Setup Git Config so that we can commit with a name run: |