Update charts-release.yaml
Signed-off-by: Kjeld Schouten <kjeld@schouten-lebbing.nl>
This commit is contained in:
parent
1b00c8ba42
commit
5155bc1521
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue