Rename to no-cache
This commit is contained in:
parent
fe6ae30010
commit
f59de90fb6
@ -14,7 +14,7 @@ inputs:
|
|||||||
scope:
|
scope:
|
||||||
required: false
|
required: false
|
||||||
description: "The scope for authenticating with the package registry."
|
description: "The scope for authenticating with the package registry."
|
||||||
disable-cache:
|
no-cache:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
description: "Disable caching of bun executable."
|
description: "Disable caching of bun executable."
|
||||||
|
|||||||
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
@ -22,7 +22,7 @@ export type Input = {
|
|||||||
profile?: boolean;
|
profile?: boolean;
|
||||||
scope?: string;
|
scope?: string;
|
||||||
registryUrl?: string;
|
registryUrl?: string;
|
||||||
disableCache?: boolean;
|
noCache?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type Output = {
|
export type Output = {
|
||||||
@ -114,8 +114,8 @@ export default async (options: Input): Promise<Output> => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function isCacheEnabled(options: Input): boolean {
|
function isCacheEnabled(options: Input): boolean {
|
||||||
const { customUrl, version, disableCache } = options;
|
const { customUrl, version, noCache } = options;
|
||||||
if (disableCache) {
|
if (noCache) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (customUrl) {
|
if (customUrl) {
|
||||||
|
|||||||
@ -41,7 +41,7 @@ runAction({
|
|||||||
customUrl: getInput("bun-download-url") || undefined,
|
customUrl: getInput("bun-download-url") || undefined,
|
||||||
registryUrl: getInput("registry-url") || undefined,
|
registryUrl: getInput("registry-url") || undefined,
|
||||||
scope: getInput("scope") || undefined,
|
scope: getInput("scope") || undefined,
|
||||||
disableCache: getBooleanInput("disable-cache") || undefined,
|
noCache: getBooleanInput("no-cache") || undefined,
|
||||||
})
|
})
|
||||||
.then(({ version, revision, cacheHit }) => {
|
.then(({ version, revision, cacheHit }) => {
|
||||||
setOutput("bun-version", version);
|
setOutput("bun-version", version);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user