mirror of
https://github.com/gradle/actions
synced 2024-11-27 11:52:24 +00:00
parent
9a57bcca96
commit
bb7a843511
1 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
import * as core from '@actions/core'
|
||||||
import * as setupGradle from '../setup-gradle'
|
import * as setupGradle from '../setup-gradle'
|
||||||
import * as gradle from '../execution/gradle'
|
import * as gradle from '../execution/gradle'
|
||||||
import * as dependencyGraph from '../dependency-graph'
|
import * as dependencyGraph from '../dependency-graph'
|
||||||
|
@ -24,6 +25,9 @@ export async function run(): Promise<void> {
|
||||||
// Configure Gradle environment (Gradle User Home)
|
// Configure Gradle environment (Gradle User Home)
|
||||||
await setupGradle.setup(new CacheConfig(), new BuildScanConfig())
|
await setupGradle.setup(new CacheConfig(), new BuildScanConfig())
|
||||||
|
|
||||||
|
// Capture the enabled state of dependency-graph
|
||||||
|
const originallyEnabled = process.env['GITHUB_DEPENDENCY_GRAPH_ENABLED']
|
||||||
|
|
||||||
// Configure the dependency graph submission
|
// Configure the dependency graph submission
|
||||||
const config = new DependencyGraphConfig()
|
const config = new DependencyGraphConfig()
|
||||||
await dependencyGraph.setup(config)
|
await dependencyGraph.setup(config)
|
||||||
|
@ -53,6 +57,9 @@ export async function run(): Promise<void> {
|
||||||
|
|
||||||
await dependencyGraph.complete(config)
|
await dependencyGraph.complete(config)
|
||||||
|
|
||||||
|
// Reset the enabled state of dependency graph
|
||||||
|
core.exportVariable('GITHUB_DEPENDENCY_GRAPH_ENABLED', originallyEnabled)
|
||||||
|
|
||||||
saveDeprecationState()
|
saveDeprecationState()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleMainActionError(error)
|
handleMainActionError(error)
|
||||||
|
|
Loading…
Reference in a new issue