From fbf8a36902c25718104d0ed20f46c3c41bc9c005 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Sun, 7 May 2023 18:42:53 +0300 Subject: [PATCH] fix(ci): don't fail if directory exists (#8810) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # Fixes: https://github.com/truecharts/charts/actions/runs/4907026867/jobs/8761876861 **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- .github/workflows/charts-release.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 0434f1a7493..5f997ae45b2 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -22,7 +22,7 @@ jobs: with: token: ${{ secrets.BOT_TOKEN }} fetch-depth: 1 - + - name: Checkout Helm-Staging uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3 with: @@ -30,7 +30,7 @@ jobs: repository: truecharts/helm-staging token: ${{ secrets.BOT_TOKEN }} path: helm - + - name: Fix Pre-Commit issues shell: bash run: | @@ -38,7 +38,7 @@ jobs: pre-commit run --all ||: # Fix sh files to always be executable find . -name '*.sh' | xargs chmod +x - + - name: Commit Helm Changes run: | rm -rf helm/charts @@ -77,13 +77,13 @@ jobs: helm repo add prometheus https://prometheus-community.github.io/helm-charts helm repo update - + # Optional step if GPG signing is used - name: Prepare GPG key shell: bash run: | gpg_dir=.cr-gpg - mkdir "$gpg_dir" + mkdir -p "$gpg_dir" keyring="$gpg_dir/secring.gpg" base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring" passphrase_file="$gpg_dir/passphrase" @@ -239,7 +239,7 @@ jobs: git add --all git commit -sm "Commit released docs for TrueCharts" || exit 0 git push - + - name: Checkout Catalog uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3 @@ -287,13 +287,13 @@ jobs: run: | git config user.name "TrueCharts-Bot" git config user.email "bot@truecharts.org" - + # Optional step if GPG signing is used - name: Prepare GPG key shell: bash run: | gpg_dir=.cr-gpg - mkdir "$gpg_dir" + mkdir -p "$gpg_dir" keyring="$gpg_dir/secring.gpg" base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring" passphrase_file="$gpg_dir/passphrase" @@ -303,7 +303,7 @@ jobs: env: GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}" GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}" - + - name: Run chart-releaser for dependency apps uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0 if: |