From 4115ea2a3adf895e2a6a5d05b4a6a45c8176ed9d Mon Sep 17 00:00:00 2001 From: comp500 Date: Sat, 16 Jul 2022 17:16:16 +0100 Subject: [PATCH] Fix environment variables passed to Gradle --- .github/workflows/release.yml | 6 +++--- .github/workflows/snapshot.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64046ea..58757cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,9 +22,9 @@ jobs: - name: Publish with Gradle run: ./gradlew publish env: - GITHUB_TOKEN: ${{ Secrets.GITHUB_TOKEN }} - BUNNYCDN_TOKEN: ${{ Secrets.BUNNYCDN_TOKEN }} - RELEASE: true + ORG_GRADLE_PROJECT_github_token: ${{ Secrets.GITHUB_TOKEN }} + ORG_GRADLE_PROJECT_bunnycdn_token: ${{ Secrets.BUNNYCDN_TOKEN }} + ORG_GRADLE_PROJECT_release: true - name: Cleanup Gradle Cache # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. # Restoring these files from a GitHub Actions cache might cause problems for future builds. diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 7b9e044..3dbf530 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -19,8 +19,8 @@ jobs: - name: Publish with Gradle run: ./gradlew publish env: - GITHUB_TOKEN: ${{ Secrets.GITHUB_TOKEN }} - BUNNYCDN_TOKEN: ${{ Secrets.BUNNYCDN_TOKEN }} + ORG_GRADLE_PROJECT_github_token: ${{ Secrets.GITHUB_TOKEN }} + ORG_GRADLE_PROJECT_bunnycdn_token: ${{ Secrets.BUNNYCDN_TOKEN }} - name: Cleanup Gradle Cache # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. # Restoring these files from a GitHub Actions cache might cause problems for future builds.