1
0
mirror of https://gitea.com/actions/cache.git synced 2025-06-15 00:08:15 +07:00
cache/src/utils/testUtils.ts
2019-10-30 14:48:49 -04:00

8 lines
213 B
TypeScript

function getInputName(name: string): string {
return `INPUT_${name.replace(/ /g, "_").toUpperCase()}`;
}
export function setInput(name: string, value: string) {
process.env[getInputName(name)] = value;
}