report status as failure if upload fails

This commit is contained in:
Joshua Hale 2020-04-30 16:28:53 +01:00
parent 1cdde3eb41
commit 26e955cfa3
No known key found for this signature in database
GPG key ID: 4823A6DB4B5E32E1
6 changed files with 42 additions and 19 deletions

View file

@ -150,7 +150,10 @@ async function run() {
await runQueries(codeqlCmd, databaseFolder, sarifFolder, config);
if ('true' === core.getInput('upload')) {
await upload_lib.upload(sarifFolder);
if (!await upload_lib.upload(sarifFolder)) {
await util.reportActionFailed('failed', 'upload');
return;
}
}
} catch (error) {