Skip to content

Commit

Permalink
Merge pull request #50 from aSemy/fix-cc-signing-check
Browse files Browse the repository at this point in the history
Update signing `onlyIf {}` check to be CC compatible
  • Loading branch information
liutikas authored Mar 20, 2024
2 parents 361ff6f + 8236a5e commit d98bb5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gcpbuildcache/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@ tasks.named<Task>("check") {
}

tasks.withType<Sign>().configureEach {
onlyIf { project.hasProperty("signing.keyId") }
val signingKeyIdPresent = project.hasProperty("signing.keyId")
onlyIf("signing.keyId is present") { signingKeyIdPresent }
}
3 changes: 2 additions & 1 deletion s3buildcache/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,6 @@ tasks.named<Task>("check") {
}

tasks.withType<Sign>().configureEach {
onlyIf { project.hasProperty("signing.keyId") }
val signingKeyIdPresent = project.hasProperty("signing.keyId")
onlyIf("signing.keyId is present") { signingKeyIdPresent }
}

0 comments on commit d98bb5b

Please sign in to comment.