Added skiprestore.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user