Call core.endGroup() when doing an early return in installPythonDeps

This commit is contained in:
David Verdeguer
2020-07-23 13:05:30 +02:00
parent 4d4cc33d97
commit d190a018d6
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -133,6 +133,7 @@ async function installPythonDeps(codeql) {
catch (e) {
// The download should not fail, but in case it fails we just abort trying to setup the python deps
core.warning('Unable to download and extract the scripts needed for installing the python dependecies');
core.endGroup();
return;
}
// Setup tools
@@ -143,6 +144,7 @@ async function installPythonDeps(codeql) {
// This script tries to install some needed tools in the runner. It should not fail, but if it does
// we just abort the process without failing the action
core.warning('Unable to download and extract the scripts needed for installing the python dependecies');
core.endGroup();
return;
}
// Install dependencies
File diff suppressed because one or more lines are too long
+2
View File
@@ -143,6 +143,7 @@ async function installPythonDeps(codeql: CodeQL) {
} catch (e) {
// The download should not fail, but in case it fails we just abort trying to setup the python deps
core.warning('Unable to download and extract the scripts needed for installing the python dependecies');
core.endGroup();
return;
}
@@ -153,6 +154,7 @@ async function installPythonDeps(codeql: CodeQL) {
// This script tries to install some needed tools in the runner. It should not fail, but if it does
// we just abort the process without failing the action
core.warning('Unable to download and extract the scripts needed for installing the python dependecies');
core.endGroup();
return;
}
// Install dependencies