chore(ci): tie the cache with the charttool hash

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Stavros Kois
2024-06-09 02:12:13 +03:00
committed by GitHub
parent dc29c8707c
commit 93641fbc20
+3 -10
View File
@@ -20,12 +20,12 @@ jobs:
token: ${{ secrets.BOT_TOKEN }}
fetch-depth: 0
- name: Fetch Cached Changelog
- name: Cache Changelog
id: cache-changelog
uses: actions/cache/restore@v4
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
with:
path: changelog.json.gz
key: changelog-json
key: changelog-json-${{ hashFiles('charttool') }}
- name: Generate Changelog
shell: bash
@@ -44,13 +44,6 @@ jobs:
./charttool genchangelog "$REPO_PATH" "$TEMPLATE_PATH" "$OUTPUT_DIR"
gzip "$JSON_FILE" --best
- name: Cache Changelog
id: cache-changelog-save
uses: actions/cache/save@v4
with:
path: changelog.json.gz
key: changelog-json
- name: Checkout Helm-Staging
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with: