Skip to content

Commit

Permalink
Update pull request template workflow to dynamically set env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedSabthar committed Sep 22, 2023
1 parent 0e00ebf commit c5da4a4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pull-request-build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
distribution: 'temurin'
java-version: 17.0.7

- name: Set ENV Variables
run: |
echo -e '${{ toJson(secrets) }}' | jq -r 'to_entries[] | .key + "=" + .value' >> $GITHUB_ENV
- name: Build the Package
env:
packageUser: ${{ github.actor }}
Expand Down Expand Up @@ -67,6 +71,11 @@ jobs:
distribution: 'temurin'
java-version: 17.0.7

- name: Set ENV Variables
run: |
echo '${{ toJson(secrets) }}' | jq -r 'to_entries[] | .key + \"=\" + .value' \
| Out-File -FilePath $env:GITHUB_ENV -Append
- name: Build the Project
env:
packageUser: ${{ github.actor }}
Expand Down

0 comments on commit c5da4a4

Please sign in to comment.