mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-20 07:44:42 +08:00
8 lines
213 B
TypeScript
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;
|
||
|
}
|