mirror of
https://github.com/actions/cache.git
synced 2026-10-01 00:51:42 +00:00
Adds input for upload chunk size
This commit is contained in:
1 parent
d606e039ae
commit
a6f1f4b32e
10 files changed
+84
-11
No files matched your search
@@ -63,3 +63,14 @@ export function getInputAsArray(
|
||||
.map(s => s.trim())
|
||||
.filter(x => x !== "");
|
||||
}
|
||||
|
||||
export function getInputAsInt(
|
||||
name: string,
|
||||
options?: core.InputOptions
|
||||
): number | undefined {
|
||||
const value = Number(core.getInput(name, options));
|
||||
if (Number.isNaN(value) || value < 0) {
|
||||
return undefined;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
Reference in new issue
Block a user