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 e9c46ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 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 Expand Up @@ -58,6 +59,13 @@ jobs:
steps:
- uses: actions/checkout@v2

- id: debug-env
run: |
echo "$ALLMYVARS"
shell: bash
env:
ALLMYVARS: ${{ toJSON(vars) }}

- id: setup-jdk
if: ${{ matrix.java != env.BUILD_JDK_VERSION }}
name: Set up JDK ${{ matrix.java }}
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 e9c46ff

Please sign in to comment.