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:
daz committed 2024-01-11 21:25:29 -07:00
1 parent 932abbbe13
commit 0e6b90783e
4 files changed
+43 -12

No files matched your search

@@ -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}'"
}