Initialize with override content

This commit is contained in:
actions-mirror
2026-03-08 02:00:42 +00:00
parent 9c6c0f6978
commit 6fba8cb3f2
2 changed files with 48 additions and 2 deletions

View File

@@ -1,2 +0,0 @@
# cache

48
action.yml Normal file
View File

@@ -0,0 +1,48 @@
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 }}"