(value)
| 19523 | var os2 = __toESM(__require("os")); |
| 19524 | function issueFileCommand(command, message) { |
| 19525 | const filePath = process.env[`GITHUB_${command}`]; |
| 19526 | if (!filePath) { |
| 19527 | throw new Error(`Unable to find environment variable for file command ${command}`); |
| 19528 | } |
| 19529 | if (!fs.existsSync(filePath)) { |
| 19530 | throw new Error(`Missing file at path: ${filePath}`); |
| 19531 | } |
| 19532 | fs.appendFileSync(filePath, `${toCommandValue(message)}${os2.EOL}`, { |