mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 10:40:10 +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:
|
bun-version:
|
||||||
description: The version of Bun that was installed.
|
description: The version of Bun that was installed.
|
||||||
cache-hit:
|
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:
|
runs:
|
||||||
using: node16
|
using: node16
|
||||||
main: dist/action.js
|
main: dist/action.js
|
||||||
|
2
dist/action.js
vendored
2
dist/action.js
vendored
@ -10,7 +10,7 @@ setup({
|
|||||||
})
|
})
|
||||||
.then(({ version, cacheHit }) => {
|
.then(({ version, cacheHit }) => {
|
||||||
action.setOutput("bun-version", version);
|
action.setOutput("bun-version", version);
|
||||||
action.setOutput("cache-hit", cacheHit ? "1" : "0");
|
action.setOutput("cache-hit", cacheHit);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
action.setFailed(error);
|
action.setFailed(error);
|
||||||
|
@ -12,7 +12,7 @@ setup({
|
|||||||
})
|
})
|
||||||
.then(({ version, cacheHit }) => {
|
.then(({ version, cacheHit }) => {
|
||||||
action.setOutput("bun-version", version);
|
action.setOutput("bun-version", version);
|
||||||
action.setOutput("cache-hit", cacheHit ? "1" : "0");
|
action.setOutput("cache-hit", cacheHit);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
action.setFailed(error);
|
action.setFailed(error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user