1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2024-10-17 06:34:41 +02:00
cache/src/utils/testUtils.ts

8 lines
213 B
TypeScript
Raw Normal View History

2019-10-30 19:48:49 +01:00
function getInputName(name: string): string {
return `INPUT_${name.replace(/ /g, "_").toUpperCase()}`;
}
export function setInput(name: string, value: string) {
process.env[getInputName(name)] = value;
}