feat(ci): allow cache overwriting

This commit is contained in:
Constrat
2024-07-19 00:57:50 +02:00
parent 5b9433bcce
commit e80784e5c4

View File

@@ -9,6 +9,11 @@ on:
description: "Commit Message"
type: string
required: false
overwrite_cache:
description: "Force cache overwrite"
type: boolean
required: false
default: false
jobs:
clone-resources-official:
@@ -124,6 +129,8 @@ jobs:
- name: Restore ResourceUpdater.exe from cache
id: cache-restore
# If overwrite = true, skip this step (to allow a new save to the cache)
if: github.event.inputs.overwrite_cache != 'true'
uses: actions/cache/restore@v4
with:
key: ${{ runner.os }}-resource-updater-main-cpp-${{ hashFiles('./tools/ResourceUpdater/main.cpp') }}