Added skiprestore.

This commit is contained in:
2025-07-12 18:21:35 -07:00
parent 171a724a37
commit 71b6b94a3a
2 changed files with 10 additions and 1 deletions

View File

@@ -57,6 +57,10 @@ inputs:
description: "Cache path. Default: Library"
required: false
default: Library
skipRestore:
description: "Whether or not to skip restoring the cache. Default: false"
required: false
default: "false"
outputs:
cacheChanged:
description: "Whether or not the cache was changed."
@@ -84,7 +88,7 @@ runs:
key: ${{ steps.command.outputs.key }}
lookup-only: true
- name: "Restore Library from Cache."
if: ${{ ( inputs.buildOnCacheHit == 'true' || steps.check-cache.outputs.cache-hit != 'true' ) }}
if: ${{ ( inputs.buildOnCacheHit == 'true' || steps.check-cache.outputs.cache-hit != 'true' ) && inputs.skipRestore != 'true' }}
uses: https://github.com/actions/cache/restore@v3
with:
path: ${{ inputs.cachePath }}