forked from corca-ai/local-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
27 lines (27 loc) · 776 Bytes
/
action.yml
File metadata and controls
27 lines (27 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: 'Local Cache on Self-hosted Runner'
description: 'Cache dependencies and build outputs to improve workflow execution time on self hosted machine'
inputs:
path:
description: 'A directory to save and restore cache.'
required: true
key:
description: 'An explicit key for a cache.'
required: true
base:
description: 'A base directory to save and restore cache.'
required: false
default: '/home/ubuntu/.cache'
clean-key:
description: 'If set, caches are cleaned up automatically at post action stage.'
required: false
outputs:
cache-hit:
description: 'Cache hit or not'
runs:
using: 'node20'
main: 'dist/restore/index.js'
post: 'dist/save/index.js'
post-if: success()
branding:
icon: 'archive'
color: 'gray-dark'