fix(ci): don't fail if directory exists (#8810)
**Description** <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> ⚒️ Fixes # <!--(issue)--> 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?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ 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._
This commit is contained in:
parent
433b5a44f5
commit
fbf8a36902
|
@ -22,7 +22,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- name: Checkout Helm-Staging
|
- name: Checkout Helm-Staging
|
||||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
|
||||||
with:
|
with:
|
||||||
|
@ -30,7 +30,7 @@ jobs:
|
||||||
repository: truecharts/helm-staging
|
repository: truecharts/helm-staging
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
path: helm
|
path: helm
|
||||||
|
|
||||||
- name: Fix Pre-Commit issues
|
- name: Fix Pre-Commit issues
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -38,7 +38,7 @@ jobs:
|
||||||
pre-commit run --all ||:
|
pre-commit run --all ||:
|
||||||
# Fix sh files to always be executable
|
# Fix sh files to always be executable
|
||||||
find . -name '*.sh' | xargs chmod +x
|
find . -name '*.sh' | xargs chmod +x
|
||||||
|
|
||||||
- name: Commit Helm Changes
|
- name: Commit Helm Changes
|
||||||
run: |
|
run: |
|
||||||
rm -rf helm/charts
|
rm -rf helm/charts
|
||||||
|
@ -77,13 +77,13 @@ jobs:
|
||||||
|
|
||||||
helm repo add prometheus https://prometheus-community.github.io/helm-charts
|
helm repo add prometheus https://prometheus-community.github.io/helm-charts
|
||||||
helm repo update
|
helm repo update
|
||||||
|
|
||||||
# Optional step if GPG signing is used
|
# Optional step if GPG signing is used
|
||||||
- name: Prepare GPG key
|
- name: Prepare GPG key
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
gpg_dir=.cr-gpg
|
gpg_dir=.cr-gpg
|
||||||
mkdir "$gpg_dir"
|
mkdir -p "$gpg_dir"
|
||||||
keyring="$gpg_dir/secring.gpg"
|
keyring="$gpg_dir/secring.gpg"
|
||||||
base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring"
|
base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring"
|
||||||
passphrase_file="$gpg_dir/passphrase"
|
passphrase_file="$gpg_dir/passphrase"
|
||||||
|
@ -239,7 +239,7 @@ jobs:
|
||||||
git add --all
|
git add --all
|
||||||
git commit -sm "Commit released docs for TrueCharts" || exit 0
|
git commit -sm "Commit released docs for TrueCharts" || exit 0
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
|
||||||
- name: Checkout Catalog
|
- name: Checkout Catalog
|
||||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
|
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
|
||||||
|
@ -287,13 +287,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config user.name "TrueCharts-Bot"
|
git config user.name "TrueCharts-Bot"
|
||||||
git config user.email "bot@truecharts.org"
|
git config user.email "bot@truecharts.org"
|
||||||
|
|
||||||
# Optional step if GPG signing is used
|
# Optional step if GPG signing is used
|
||||||
- name: Prepare GPG key
|
- name: Prepare GPG key
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
gpg_dir=.cr-gpg
|
gpg_dir=.cr-gpg
|
||||||
mkdir "$gpg_dir"
|
mkdir -p "$gpg_dir"
|
||||||
keyring="$gpg_dir/secring.gpg"
|
keyring="$gpg_dir/secring.gpg"
|
||||||
base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring"
|
base64 -d <<< "$GPG_KEYRING_BASE64" > "$keyring"
|
||||||
passphrase_file="$gpg_dir/passphrase"
|
passphrase_file="$gpg_dir/passphrase"
|
||||||
|
@ -303,7 +303,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}"
|
GPG_KEYRING_BASE64: "${{ secrets.GPG_KEYRING_BASE64 }}"
|
||||||
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
|
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
|
||||||
|
|
||||||
- name: Run chart-releaser for dependency apps
|
- name: Run chart-releaser for dependency apps
|
||||||
uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0
|
uses: helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5.0
|
||||||
if: |
|
if: |
|
||||||
|
|
Loading…
Reference in New Issue