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" description: "Cache path. Default: Library"
required: false required: false
default: Library default: Library
skipRestore:
description: "Whether or not to skip restoring the cache. Default: false"
required: false
default: "false"
compressionLevel: compressionLevel:
description: "Compression level for the artifacts." description: "Compression level for the artifacts."
required: false required: false
@@ -97,6 +101,7 @@ runs:
cachePrefix: ${{ inputs.cachePrefix }} cachePrefix: ${{ inputs.cachePrefix }}
releaseBranch: ${{ inputs.releaseBranch }} releaseBranch: ${{ inputs.releaseBranch }}
cachePath: ${{ inputs.cachePath }} cachePath: ${{ inputs.cachePath }}
skipRestore: ${{ inputs.skipRestore }}
- name: "Get product name." - name: "Get product name."
id: get_product_name id: get_product_name
uses: act/unity/unity-get-product-name@master uses: act/unity/unity-get-product-name@master

View File

@@ -57,6 +57,10 @@ inputs:
description: "Cache path. Default: Library" description: "Cache path. Default: Library"
required: false required: false
default: Library default: Library
skipRestore:
description: "Whether or not to skip restoring the cache. Default: false"
required: false
default: "false"
outputs: outputs:
cacheChanged: cacheChanged:
description: "Whether or not the cache was changed." description: "Whether or not the cache was changed."
@@ -84,7 +88,7 @@ runs:
key: ${{ steps.command.outputs.key }} key: ${{ steps.command.outputs.key }}
lookup-only: true lookup-only: true
- name: "Restore Library from Cache." - 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 uses: https://github.com/actions/cache/restore@v3
with: with:
path: ${{ inputs.cachePath }} path: ${{ inputs.cachePath }}