Skip to content

Commit c089a6d

Browse files
committed
Track Git info that is written to playbook as inputs
1 parent 7f4c6fc commit c089a6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gradle/plugins/antora/src/main/kotlin/junitbuild.antora-conventions.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ val generateAntoraPlaybook by tasks.registering(Copy::class) {
2020
val gitRepoRoot = providers.exec {
2121
commandLine("git", "worktree", "list", "--porcelain", "-z")
2222
}.standardOutput.asText.map { it.substringBefore('\u0000').substringAfter(' ') }
23+
inputs.property("gitRepoRoot", gitRepoRoot)
2324

2425
val gitBranchName = providers.exec {
2526
commandLine("git", "rev-parse", "--abbrev-ref", "HEAD")
2627
}.standardOutput.asText.map { it.trim() }
28+
inputs.property("gitBranchName", gitBranchName)
2729

2830
from(layout.projectDirectory.file("antora-playbook.yml").asFile)
2931
filter { line ->

0 commit comments

Comments
 (0)