mirror of
https://github.com/actions/cache.git
synced 2024-11-14 01:51:46 +01:00
7 lines
213 B
TypeScript
7 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;
|
|
}
|