Skip to content

Commit

Permalink
use environment variable directly
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhee17 committed Jul 31, 2023
1 parent 94fc3ff commit 03625bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/actions_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ concurrency:
env:
LC_ALL: "en_US.UTF-8"
BUILD_JDK_VERSION: "19"
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
PRIVATE_GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
PUBLIC_GRADLE_ENTERPRISE_ACCESS_KEY: "scr6znfepfdcwgczcbybz22tb44yae7xgjxorl32vtrlojl6x37q"

jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ gradleEnterprise {
taskInputFiles = true
}
}
accessKey = System.getenv("PRIVATE_GRADLE_ENTERPRISE_ACCESS_KEY") != null
? System.getenv("PRIVATE_GRADLE_ENTERPRISE_ACCESS_KEY")
: System.getenv("PUBLIC_GRADLE_ENTERPRISE_ACCESS_KEY")
}

rootProject.name = 'armeria'
Expand Down

0 comments on commit 03625bb

Please sign in to comment.