Skip to content

Commit

Permalink
Refactor environment variables setup in Gradle workflow
Browse files Browse the repository at this point in the history
The change improves the way environment variables are set in the Gradle GitHub workflow file. It combines the Debug Environment Variables and Set environment variables steps into a single step, simplifying the workflow and reducing unnecessary actions.
  • Loading branch information
kousen committed May 26, 2024
1 parent 7104c9d commit a97fbfa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ jobs:
distribution: 'temurin'
java-version: 17
- name: Debug Environment Variables
run: printenv
- name: Set environment variables
run: echo "OPENWEATHERMAP_API_KEY=${{ secrets.OPENWEATHERMAP_API_KEY }}" >> $GITHUB_ENV
run: |
echo "OPENWEATHERMAP_API_KEY=${{ secrets.OPENWEATHERMAP_API_KEY }}"
- uses: gradle/gradle-build-action@v2
with:
arguments: build
Expand Down

0 comments on commit a97fbfa

Please sign in to comment.