From e8e1425f45195c19463aa665cbf184123f5c6f82 Mon Sep 17 00:00:00 2001 From: barrfalk Date: Mon, 8 Jan 2024 16:10:10 -0800 Subject: [PATCH] Update .push-helm-chart.yml --- .github/workflows/.push-helm-chart.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/.push-helm-chart.yml b/.github/workflows/.push-helm-chart.yml index 5ae169a4..dde4e4a9 100644 --- a/.github/workflows/.push-helm-chart.yml +++ b/.github/workflows/.push-helm-chart.yml @@ -101,11 +101,11 @@ jobs: chmod 600 ~/.ssh/id_rsa.pub ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts - - name: Clean up + - name: Clean up target repository directory run: | - git clean -fdx - git reset --hard HEAD - + if [ -d "target-repo" ]; then + rm -rf target-repo + fi - name: Checkout target repository using SSH uses: actions/checkout@v2