mirror of
https://github.com/actions/cache
synced 2026-05-08 04:11:05 +02:00
Initial commit
This commit is contained in:
7
src/utils/testUtils.ts
Normal file
7
src/utils/testUtils.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
function getInputName(name: string): string {
|
||||
return `INPUT_${name.replace(/ /g, "_").toUpperCase()}`;
|
||||
}
|
||||
|
||||
export function setInput(name: string, value: string) {
|
||||
process.env[getInputName(name)] = value;
|
||||
}
|
||||
Reference in New Issue
Block a user