Skip to content

Commit 66dfe36

Browse files
authored
[Infra] Only set commitsToIgnoreFile convention if file exists (#8479)
Updated `PublishingPlugin` to verify the existence of `ignoreCommits.txt` before setting it as the `commitsToIgnoreFile` convention.
1 parent f05e4bc commit 66dfe36

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

plugins/src/main/java/com/google/firebase/gradle/plugins/PublishingPlugin.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,9 @@ abstract class PublishingPlugin : Plugin<Project> {
665665
currentRelease.convention(project.provideProperty("currentRelease"))
666666
pastRelease.convention(project.provideProperty("pastRelease"))
667667
printReleaseConfig.convention(project.provideProperty("printOutput"))
668-
commitsToIgnoreFile.convention(project.layout.projectDirectory.file("ignoreCommits.txt"))
669-
668+
project.layout.projectDirectory.file("ignoreCommits.txt").let {
669+
if (it.asFile.exists()) commitsToIgnoreFile.convention(it)
670+
}
670671
releaseConfigFile.convention(project.layout.projectDirectory.file(RELEASE_CONFIG_FILE))
671672
releaseReportJsonFile.convention(
672673
project.layout.projectDirectory.file(RELEASE_REPORT_JSON_FILE)

0 commit comments

Comments
 (0)