Make cacheHit conform to best practices for actions

This commit is contained in:
Ashcon Partovi 2023-03-01 15:58:31 -08:00
parent c7179230d0
commit 157143337b
3 changed files with 3 additions and 3 deletions

View File

@ -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
View File

@ -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);

View File

@ -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);