function readConfiguration(filename) {
    let rawdata;
    try {
        rawdata = fs.readFileSync(filename, 'utf8');
    }
    catch (error) {
        core.info(`⚠️ Configuration provided, but it couldn't be found. Fallback to Defaults.`);
        return null;
    }
    try {
        const configurationJSON = JSON.parse(rawdata);
        return configurationJSON;
    }
    catch (error) {
        core.info(`⚠️ Configuration provided, but it couldn't be parsed. Fallback to Defaults.`);
        return null;
    }
}
/**
 * Reads in the configuration from the JSON file
 */
Reads in the configuration from the JSON file
Reads in the configuration from the JSON file
function readConfiguration(filename) {
    let rawdata;
    try {
        rawdata = fs.readFileSync(filename, 'utf8');
    }
    catch (error) {
        core.info(`⚠️ Configuration provided, but it couldn't be found. Fallback to Defaults.`);
        return null;
    }
    try {
        const configurationJSON = JSON.parse(rawdata);
        return configurationJSON;
    }
    catch (error) {
        core.info(`⚠️ Configuration provided, but it couldn't be parsed. Fallback to Defaults.`);
        return null;
    }
}
function readConfiguration ( filename ) { let rawdata ; try { rawdata = fs . readFileSync ( filename , 'utf8' ) ; } catch ( error ) { core . info ( ` return null ; } try { const configurationJSON = JSON . parse ( rawdata ) ; return configurationJSON ; } catch ( error ) { core . info ( ` return null ; } }
Reads in the configuration from the JSON file
Reads in the configuration from the JSON file