Skip to content

Commit 652b010

Browse files
authored
Merge pull request #48 from namespacelabs/space-exp
🧑‍🚀 backs action with space cli
2 parents 446d8f3 + 481fa0d commit 652b010

File tree

12 files changed

+19785
-3943
lines changed

12 files changed

+19785
-3943
lines changed

action.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,40 @@ name: "Cache"
22
description: "Cache artifacts like dependencies and build outputs to a Namespace Cloud cache volume to improve workflow execution time."
33
author: "Namespace Labs"
44
inputs:
5-
path:
6-
description: "A list of files, directories, and wildcard patterns to cache and restore"
5+
space-enabled:
6+
description: "Opt-in to the Space CLI experiment"
7+
required: false
8+
default: "false"
9+
space-version:
10+
description: "Version of space CLI to use (e.g., '0.1.0' or 'latest'). If not specified, uses existing binary or fetches latest."
11+
required: false
12+
github-token:
13+
description: "GitHub token for API requests to fetch space releases"
714
required: false
8-
# key:
9-
# description: "An explicit key for restoring and saving the cache"
10-
# required: false
15+
default: "${{ github.token }}"
1116
fail-on-cache-miss:
1217
description: "Fail the workflow if cache entry is not found"
1318
default: "false"
1419
required: false
20+
detect:
21+
description: "A list of cache modes you want to enable, only if detected. Set to 'true' to detect all available cache modes based on the environment. See `mode` for a list of available cache modes."
22+
required: false
23+
mode:
24+
description: "A list of cache modes to enable. Supported options are 'apt,go,golangci-lint'"
25+
required: false
26+
path:
27+
description: "A list of files, directories, and wildcard patterns to cache and restore"
28+
required: false
29+
# Deprecated
1530
cache:
1631
description: "A list of native cache modes. Supported options are 'go,yarn,rust,brew,pnpm,gradle,maven,composer,poetry,uv,python,xcode,swiftpm,cocoapods'"
1732
required: false
33+
deprecationMessage: "`cache` has been renamed to `mode`. This change is to distinguish between detecting a mode and explicitly enabling a mode."
1834
outputs:
1935
cache-hit:
2036
description: "A boolean value to indicate an exact match was found for the primary key"
2137
runs:
22-
using: "node20"
38+
using: "node24"
2339
main: "dist/index/index.js"
2440
post: "dist/post/index.js"
2541
post-if: success()

0 commit comments

Comments
 (0)