function issueFileCommand(command, message) {
    const filePath = process.env[`GITHUB_${command}`];
    if (!filePath) {
        throw new Error(`Unable to find environment variable for file command ${command}`);
    }
    if (!fs$1.existsSync(filePath)) {
        throw new Error(`Missing file at path: ${filePath}`);
    }
    fs$1.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
        encoding: 'utf8'
    });
}
Attempts to reads bytes into view, and returns a promise resolved with the result.

If reading a chunk causes the queue to become empty, more data will be pulled from the underlying source.