Skip to content

Commit

Permalink
[Common] Add Github Secrets Injection
Browse files Browse the repository at this point in the history
  • Loading branch information
ajou4095 committed Jan 13, 2024
1 parent cc7fee1 commit cca16ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ dependencies {
}

fun getLocalProperty(propertyKey: String): String {
return gradleLocalProperties(rootDir).getProperty(propertyKey)
return gradleLocalProperties(rootDir).getProperty(propertyKey) ?: System.getenv(propertyKey)
}
2 changes: 1 addition & 1 deletion data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ dependencies {
}

fun getLocalProperty(propertyKey: String): String {
return gradleLocalProperties(rootDir).getProperty(propertyKey)
return gradleLocalProperties(rootDir).getProperty(propertyKey) ?: System.getenv(propertyKey)
}
2 changes: 1 addition & 1 deletion domain/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ dependencies {
}

fun getLocalProperty(propertyKey: String): String {
return gradleLocalProperties(rootDir).getProperty(propertyKey)
return gradleLocalProperties(rootDir).getProperty(propertyKey) ?: System.getenv(propertyKey)
}
2 changes: 1 addition & 1 deletion presentation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ dependencies {
}

fun getLocalProperty(propertyKey: String): String {
return gradleLocalProperties(rootDir).getProperty(propertyKey)
return gradleLocalProperties(rootDir).getProperty(propertyKey) ?: System.getenv(propertyKey)
}

0 comments on commit cca16ed

Please sign in to comment.