mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-24 12:25:32 +00:00
Basic implementation
This commit is contained in:
parent
6babf202a4
commit
69b8227b27
10 changed files with 320 additions and 174 deletions
26
restore/action.yml
Normal file
26
restore/action.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: 'Restore Cache'
|
||||
description: 'Restore Cache artifacts like dependencies and build outputs to improve workflow execution time'
|
||||
author: 'GitHub'
|
||||
inputs:
|
||||
path:
|
||||
description: 'A list of files, directories, and wildcard patterns to cache and restore'
|
||||
required: true
|
||||
key:
|
||||
description: 'An explicit key for restoring and saving the cache'
|
||||
required: true
|
||||
restore-keys:
|
||||
description: 'An ordered list of keys to use for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case.'
|
||||
required: false
|
||||
strict-restore:
|
||||
description: 'Fail the workflow if the cache is not found for the given key.'
|
||||
required: false
|
||||
default: "no"
|
||||
outputs:
|
||||
cache-hit:
|
||||
description: 'A boolean value to indicate an exact match was found for the primary key'
|
||||
runs:
|
||||
using: 'node16'
|
||||
main: '../dist/restore/index.js'
|
||||
branding:
|
||||
icon: 'archive'
|
||||
color: 'gray-dark'
|
Loading…
Add table
Add a link
Reference in a new issue