From c8a14e6ba7bdc02fae29a4caa34c8b476f7a7d5e Mon Sep 17 00:00:00 2001 From: Jens Pots Date: Thu, 30 May 2024 13:28:42 +0200 Subject: [PATCH] fix: use proper dotenv api --- build.gradle.kts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index f509a5a..27b0e5c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") } } } @@ -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") } } }