Skip to content

Commit

Permalink
Fix token loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Sep 26, 2023
1 parent ab14d1b commit d368143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions version.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ modrinth {
val isStaging = (project.properties["modrinth.staging"] as String?)?.toBoolean()
?: (System.getenv("MODRINTH_STAGING") == "1")
token.set(
project.properties["modrinth.token${".staging".takeIf { isStaging }}"] as String?
?: System.getenv("MODRINTH_TOKEN${"_STAGING".takeIf { isStaging }}")
project.properties["modrinth.token${if (isStaging) ".staging" else ""}"] as String?
?: System.getenv("MODRINTH_TOKEN${if (isStaging) "_STAGING" else ""}")
)
if (isStaging) {
apiUrl.set(ModrinthExtension.STAGING_API_URL)
Expand Down

0 comments on commit d368143

Please sign in to comment.