Skip to content

Commit

Permalink
fix: use proper dotenv api
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspots committed May 30, 2024
1 parent 955a0c1 commit c8a14e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ repositories {
maven {
url = uri("https://maven.pkg.github.com/rdf-connect/jvm-runner")
credentials {
username = env.GITHUB_ACTOR.orElse(System.getenv("GITHUB_ACTOR"))
password = env.GITHUB_TOKEN.orElse(System.getenv("GITHUB_TOKEN"))
username = env.fetchOrNull("GITHUB_ACTOR") ?: System.getenv("GITHUB_ACTOR")
password = env.fetchOrNull("GITHUB_TOKEN") ?: System.getenv("GITHUB_TOKEN")
}
}
}
Expand Down Expand Up @@ -84,8 +84,8 @@ publishing {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/rdf-connect/jvm-runner")
credentials {
username = env.GITHUB_ACTOR.orElse(System.getenv("GITHUB_ACTOR"))
password = env.GITHUB_TOKEN.orElse(System.getenv("GITHUB_TOKEN"))
username = env.fetchOrNull("GITHUB_ACTOR") ?: System.getenv("GITHUB_ACTOR")
password = env.fetchOrNull("GITHUB_TOKEN") ?: System.getenv("GITHUB_TOKEN")
}
}
}
Expand Down

0 comments on commit c8a14e6

Please sign in to comment.