mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-22 17:50:13 +08:00
Make cacheHit conform to best practices for actions
This commit is contained in:
parent
c7179230d0
commit
157143337b
@ -13,7 +13,7 @@ outputs:
|
||||
bun-version:
|
||||
description: The version of Bun that was installed.
|
||||
cache-hit:
|
||||
description: If the version of Bun was cached. (e.g. "1" is true, "0" is false)
|
||||
description: If the version of Bun was cached.
|
||||
runs:
|
||||
using: node16
|
||||
main: dist/action.js
|
||||
|
2
dist/action.js
vendored
2
dist/action.js
vendored
@ -10,7 +10,7 @@ setup({
|
||||
})
|
||||
.then(({ version, cacheHit }) => {
|
||||
action.setOutput("bun-version", version);
|
||||
action.setOutput("cache-hit", cacheHit ? "1" : "0");
|
||||
action.setOutput("cache-hit", cacheHit);
|
||||
})
|
||||
.catch((error) => {
|
||||
action.setFailed(error);
|
||||
|
@ -12,7 +12,7 @@ setup({
|
||||
})
|
||||
.then(({ version, cacheHit }) => {
|
||||
action.setOutput("bun-version", version);
|
||||
action.setOutput("cache-hit", cacheHit ? "1" : "0");
|
||||
action.setOutput("cache-hit", cacheHit);
|
||||
})
|
||||
.catch((error) => {
|
||||
action.setFailed(error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user