Update charts-release.yaml

Signed-off-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
This commit is contained in:
Kjeld Schouten 2024-05-31 11:36:28 +02:00 committed by GitHub
parent 1b00c8ba42
commit 5155bc1521
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 23 additions and 23 deletions

View File

@ -20,6 +20,29 @@ jobs:
token: ${{ secrets.BOT_TOKEN }}
fetch-depth: 0
- name: Cache Changelog
id: cache-changelog
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: changelog.json.gz
key: changelog-json
- name: Generate Changelog
shell: bash
run: |
export REPO_PATH="./"
export TEMPLATE_PATH=".//templates/CHANGELOG.md.tmpl"
export CHARTS_DIR=".//charts"
export JSON_FILE="changelog.json"
rm -rf helm
ls -l
if [ -f "$JSON_FILE.gz" ]; then
gunzip "$JSON_FILE.gz" --force # Force overwrite if file already exists
fi
./charttool genchangelog "$REPO_PATH" "$TEMPLATE_PATH" "$CHARTS_DIR"
gzip "$JSON_FILE" --best
- name: Checkout Helm-Staging
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
@ -52,29 +75,6 @@ jobs:
git push
cd -
- name: Cache Changelog
id: cache-changelog
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: changelog.json.gz
key: changelog-json
- name: Generate Changelog
shell: bash
run: |
export REPO_PATH="./"
export TEMPLATE_PATH=".//templates/CHANGELOG.md.tmpl"
export CHARTS_DIR=".//charts"
export JSON_FILE="changelog.json"
rm -rf helm
ls -l
if [ -f "$JSON_FILE.gz" ]; then
gunzip "$JSON_FILE.gz" --force # Force overwrite if file already exists
fi
./charttool genchangelog "$REPO_PATH" "$TEMPLATE_PATH" "$CHARTS_DIR"
gzip "$JSON_FILE" --best
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with: