Merge branch 'main' into henrymercer/report-failed-runs
This commit is contained in:
commit
98b2ddc7f9
15 changed files with 42 additions and 23 deletions
6
lib/analyze-action.js
generated
6
lib/analyze-action.js
generated
|
|
@ -104,6 +104,8 @@ function doesGoExtractionOutputExist(config) {
|
|||
* - We detect whether an autobuild step is present by checking the
|
||||
* `util.DID_AUTOBUILD_GO_ENV_VAR_NAME` environment variable, which is set
|
||||
* when the autobuilder is invoked.
|
||||
* - We detect whether the Go database has already been finalized in case it
|
||||
* has been manually set in a prior Action step.
|
||||
* - We approximate whether manual build steps are present by looking at
|
||||
* whether any extraction output already exists for Go.
|
||||
*/
|
||||
|
|
@ -115,6 +117,10 @@ async function runAutobuildIfLegacyGoWorkflow(config, logger) {
|
|||
logger.debug("Won't run Go autobuild since it has already been run.");
|
||||
return;
|
||||
}
|
||||
if ((0, analyze_1.dbIsFinalized)(config, languages_1.Language.go, logger)) {
|
||||
logger.debug("Won't run Go autobuild since there is already a finalized database for Go.");
|
||||
return;
|
||||
}
|
||||
// This captures whether a user has added manual build steps for Go
|
||||
if (doesGoExtractionOutputExist(config)) {
|
||||
logger.debug("Won't run Go autobuild since at least one file of Go code has already been extracted.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue