mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 09:50:40 +08:00
feat(ci): allow cache overwriting
This commit is contained in:
7
.github/workflows/res-update-game.yml
vendored
7
.github/workflows/res-update-game.yml
vendored
@@ -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') }}
|
||||
|
||||
Reference in New Issue
Block a user