Files
cache/action.yml
2026-03-08 02:00:42 +00:00

49 lines
1.7 KiB
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: 'Cache (No-Op for Gitea)'
description: 'No-op cache action for Gitea - automatically skips caching operations'
author: 'actions-mirror'
inputs:
path:
description: 'A list of files, directories, and wildcard patterns to cache and restore'
required: false
key:
description: 'An explicit key for restoring and saving the cache'
required: false
restore-keys:
description: 'An ordered list of keys to use for restoring stale cache if no cache hit occurred for key'
required: false
upload-chunk-size:
description: 'The chunk size used to split up large files during upload, in bytes'
required: false
enableCrossOsArchive:
description: 'An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms'
required: false
default: 'false'
fail-on-cache-miss:
description: 'Fail the workflow if cache entry is not found'
required: false
default: 'false'
lookup-only:
description: 'Check if a cache entry exists for the given input(s) without downloading the cache'
required: false
default: 'false'
save-always:
description: 'Run the post step to save the cache even if another step before fails'
required: false
default: 'false'
outputs:
cache-hit:
description: 'A boolean value to indicate an exact match was found for the primary key'
value: 'false'
runs:
using: 'composite'
steps:
- name: Cache operation skipped
shell: bash
run: |
echo " Cache action skipped on Gitea (using no-op override)"
echo " Path: ${{ inputs.path }}"
echo " Key: ${{ inputs.key }}"