1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-20 03:46:17 +02:00
cache/action.yml

25 lines
737 B
YAML
Raw Normal View History

2020-03-23 23:35:15 +09:00
name: "Cache"
description: "Cache artifacts like dependencies and build outputs to improve workflow execution time"
author: "GitHub"
2019-10-30 14:48:49 -04:00
inputs:
path:
2020-03-23 23:35:15 +09:00
description: "A directory to store and save the cache"
2019-10-30 14:48:49 -04:00
required: true
key:
2020-03-23 23:35:15 +09:00
description: "An explicit key for restoring and saving the cache"
2019-10-30 14:48:49 -04:00
required: true
restore-keys:
2020-03-23 23:35:15 +09:00
description: "An ordered list of keys to use for restoring the cache if no cache hit occurred for key"
2019-10-30 14:48:49 -04:00
required: false
outputs:
cache-hit:
2020-03-23 23:35:15 +09:00
description: "A boolean value to indicate an exact match was found for the primary key"
2019-10-30 14:48:49 -04:00
runs:
2020-03-23 23:35:15 +09:00
using: "node12"
main: "dist/restore/index.js"
post: "dist/save/index.js"
post-if: "success()"
2019-10-30 14:48:49 -04:00
branding:
2020-03-23 23:35:15 +09:00
icon: "archive"
color: "gray-dark"