From e80784e5c476a41e9082cd30c7b4cbd99d3a7a4d Mon Sep 17 00:00:00 2001 From: Constrat <56174894+Constrat@users.noreply.github.com.> Date: Fri, 19 Jul 2024 00:57:50 +0200 Subject: [PATCH] feat(ci): allow cache overwriting --- .github/workflows/res-update-game.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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') }}