mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-10-14 17:22:41 +08:00
Fix dependency-graph with configuration-cache
When state is reused from the configuration cache, no dependencies are resolved. This fix prevents the action from submitting an empty dependency graph in this case.
This commit is contained in:
@@ -9,7 +9,7 @@ buildscript {
|
||||
maven { url pluginRepositoryUrl }
|
||||
}
|
||||
dependencies {
|
||||
classpath "org.gradle:github-dependency-graph-gradle-plugin:1.0.0"
|
||||
classpath "org.gradle:github-dependency-graph-gradle-plugin:1.1.0"
|
||||
}
|
||||
}
|
||||
apply plugin: org.gradle.github.GitHubDependencyGraphPlugin
|
||||
|
@@ -22,11 +22,6 @@ if (isTopLevelBuild) {
|
||||
return
|
||||
}
|
||||
|
||||
def githubOutput = System.getenv("GITHUB_OUTPUT")
|
||||
if (githubOutput) {
|
||||
new File(githubOutput) << "dependency-graph-file=${reportFile.absolutePath}\n"
|
||||
}
|
||||
|
||||
println "Generating dependency graph into '${reportFile}'"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user