Update Gradle GitHub actions for OpenWeatherMap API Key #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Print All Environment Variables | |
run: printenv | |
- name: Debug Environment Variables | |
run: echo "OPENWEATHERMAP_API_KEY=$OPENWEATHERMAP_API_KEY" | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build | |
env: | |
OPENWEATHERMAP_API_KEY: ${{ env.OPENWEATHERMAP_API_KEY }} |