diff --git a/.github/workflows/res-update-game.yml b/.github/workflows/res-update-game.yml index 33b55781cb..478aca49e3 100644 --- a/.github/workflows/res-update-game.yml +++ b/.github/workflows/res-update-game.yml @@ -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') }}