diff --git a/sources/src/dependency-submission/main.ts b/sources/src/dependency-submission/main.ts index 0e560db1..cb3ead6d 100644 --- a/sources/src/dependency-submission/main.ts +++ b/sources/src/dependency-submission/main.ts @@ -1,3 +1,4 @@ +import * as core from '@actions/core' import * as setupGradle from '../setup-gradle' import * as gradle from '../execution/gradle' import * as dependencyGraph from '../dependency-graph' @@ -25,6 +26,7 @@ export async function run(): Promise { await setupGradle.setup(new CacheConfig(), new BuildScanConfig()) // Configure the dependency graph submission + const originallyEnabled = process.env['GITHUB_DEPENDENCY_GRAPH_ENABLED'] const config = new DependencyGraphConfig() await dependencyGraph.setup(config) @@ -53,6 +55,10 @@ export async function run(): Promise { await dependencyGraph.complete(config) + // Reset the enabled state of dependency graph + core.info(`SETTING GITHUB_DEPENDENCY_GRAPH_ENABLED back TO ${originallyEnabled}`) + core.exportVariable('GITHUB_DEPENDENCY_GRAPH_ENABLED', originallyEnabled) + saveDeprecationState() } catch (error) { handleMainActionError(error)