Skip to content

Refactor environment variables setup in Gradle workflow #83

Refactor environment variables setup in Gradle workflow

Refactor environment variables setup in Gradle workflow #83

Workflow file for this run

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: Debug Environment Variables
run: |
echo "OPENWEATHERMAP_API_KEY=${{ secrets.OPENWEATHERMAP_API_KEY }}"
- uses: gradle/gradle-build-action@v2
with:
arguments: build
env:
OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }}