Add support for fail-fast env variable

This commit is contained in:
Shivam Mathur
2020-10-17 04:13:36 +05:30
parent 96d8c1e901
commit b77ec78d01
7 changed files with 26 additions and 9 deletions

5
dist/index.js vendored
View File

@ -2084,7 +2084,7 @@ async function addDevTools(tool, os_version) {
case 'darwin':
return 'add_devtools ' + tool;
case 'win32':
return await utils.addLog('$cross', tool, tool + ' is not a windows tool', 'win32');
return await utils.addLog('$tick', tool, tool + ' is not a windows tool', 'win32');
default:
return await utils.log('Platform ' + os_version + ' is not supported', os_version, 'error');
}
@ -2583,7 +2583,8 @@ async function run() {
const tool = await utils.scriptTool(os_version);
const script = os_version + (await utils.scriptExtension(os_version));
const location = await getScript(script, version, os_version);
await exec_1.exec(await utils.joins(tool, location, version, __dirname));
const fail_fast = await utils.readEnv('fail-fast');
await exec_1.exec(await utils.joins(tool, location, version, __dirname, fail_fast));
}
catch (error) {
core.setFailed(error.message);