From 5ab1351fa2d091d1227d38ffc8df211445eed989 Mon Sep 17 00:00:00 2001 From: viral32111 <19510403+viral32111@users.noreply.github.com> Date: Fri, 4 Aug 2023 11:27:19 +0100 Subject: [PATCH] Use new env var names --- .github/workflows/ci.yml | 4 ++-- build.gradle.kts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c21c62..d86b694 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,8 +41,8 @@ jobs: - name: Build project uses: gradle/gradle-build-action@v2 env: - USERNAME: ${{ github.repository_owner }} - TOKEN: ${{ secrets.GITHUB_TOKEN }} + GHPKG_USER: ${{ github.repository_owner }} + GHPKG_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: arguments: build cache-disabled: true diff --git a/build.gradle.kts b/build.gradle.kts index 5119ac4..871ffa5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,8 +14,8 @@ repositories { maven { url = uri( "https://maven.pkg.github.com/viral32111/events" ) credentials { - username = project.findProperty( "ghpkg.user" ) as String? ?: System.getenv( "USER" ) - password = project.findProperty( "ghpkg.token" ) as String? ?: System.getenv( "TOKEN" ) + username = project.findProperty( "ghpkg.user" ) as String? ?: System.getenv( "GHPKG_USER" ) + password = project.findProperty( "ghpkg.token" ) as String? ?: System.getenv( "GHPKG_TOKEN" ) } } }