Skip to content

Commit

Permalink
Fix github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zhelenskiy committed Apr 4, 2024
1 parent 0d6800e commit 12d97e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencyResolutionManagement {
fun getPassword(): String {
val propertiesFile: File = rootProject.projectDir.resolve("local.properties")
val properties = if (propertiesFile.exists()) propertiesFile.loadProperties() else mapOf()
val githubPersonalToken: String? by properties
val githubPersonalToken = properties.getOrDefault("githubPersonalToken", null) as String?
return githubPersonalToken
?: System.getProperty("GITHUB_TOKEN").takeIf { it.isNotEmpty() }
?: System.getenv("GITHUB_TOKEN")
Expand Down

0 comments on commit 12d97e8

Please sign in to comment.