function writeOutput(githubWorkspacePath, outputFile, changelog) {
    if (outputFile && changelog) {
        const outputPath = path.resolve(githubWorkspacePath, outputFile);
        core.debug(`outputPath = '${outputPath}'`);
        try {
            fs.writeFileSync(outputPath, changelog);
        }
        catch (error) {
            core.warning(`⚠️ Could not write the file to disk - ${error.message}`);
        }
    }
}
/**
 * Writes the changelog to the given the file
 */
Writes the changelog to the given the file
Writes the changelog to the given the file
function writeOutput(githubWorkspacePath, outputFile, changelog) {
    if (outputFile && changelog) {
        const outputPath = path.resolve(githubWorkspacePath, outputFile);
        core.debug(`outputPath = '${outputPath}'`);
        try {
            fs.writeFileSync(outputPath, changelog);
        }
        catch (error) {
            core.warning(`⚠️ Could not write the file to disk - ${error.message}`);
        }
    }
}
function writeOutput ( githubWorkspacePath , outputFile , changelog ) { if ( outputFile && changelog ) { const outputPath = path . resolve ( githubWorkspacePath , outputFile ) ; core . debug ( ` ${ outputPath } ` ) ; try { fs . writeFileSync ( outputPath , changelog ) ; } catch ( error ) { core . warning ( ` ro r.mes s age}`); } } }
Writes the changelog to the given the file
Writes the changelog to the given the file