From 2ca83242fbc135477009a907d79d7390fb0250e1 Mon Sep 17 00:00:00 2001 From: daz Date: Tue, 16 Jul 2024 21:03:12 -0600 Subject: [PATCH] Reset dependency-graph after submission --- sources/src/dependency-submission/main.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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)