Skip to content

Commit 71ef220

Browse files
committed
Set DID_AUTOBUILD_GOLANG in runAutobuild
1 parent d4722a8 commit 71ef220

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

lib/autobuild-action.js

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/autobuild-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/autobuild.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/autobuild.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/autobuild-action.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
import { getGitHubVersion } from "./api-client";
99
import { determineAutobuildLanguages, runAutobuild } from "./autobuild";
1010
import * as configUtils from "./config-utils";
11-
import { EnvVar } from "./environment";
1211
import { Language } from "./languages";
1312
import { Logger, getActionsLogger } from "./logging";
1413
import {
@@ -98,9 +97,6 @@ async function run() {
9897
for (const language of languages) {
9998
currentLanguage = language;
10099
await runAutobuild(language, config, logger);
101-
if (language === Language.go) {
102-
core.exportVariable(EnvVar.DID_AUTOBUILD_GOLANG, "true");
103-
}
104100
}
105101
}
106102
} catch (unwrappedError) {

src/autobuild.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { getTemporaryDirectory, getWorkflowEventName } from "./actions-util";
44
import { getGitHubVersion } from "./api-client";
55
import { CodeQL, getCodeQL } from "./codeql";
66
import * as configUtils from "./config-utils";
7+
import { EnvVar } from "./environment";
78
import { Feature, featureConfig, Features } from "./feature-flags";
89
import { isTracedLanguage, Language } from "./languages";
910
import { Logger } from "./logging";
@@ -150,5 +151,8 @@ export async function runAutobuild(
150151
await setupCppAutobuild(codeQL, logger);
151152
}
152153
await codeQL.runAutobuild(language);
154+
if (language === Language.go) {
155+
core.exportVariable(EnvVar.DID_AUTOBUILD_GOLANG, "true");
156+
}
153157
logger.endGroup();
154158
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy