Skip to content

Commit

Permalink
Step to get secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Johnston committed Oct 7, 2023
1 parent ba4bea8 commit 2225477
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main_joeljca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Echo back environment
- name: Write environment to global variables
shell: bash
run: export JJ_AZ_SECRET='${{ secrets.JJ_AZ_SECRET }}' & export JJ_AZ_APP_ID='${{ vars.JJ_AZ_APP_ID }}' & export JJ_AZ_TENANT_ID='${{ vars.JJ_AZ_TENANT_ID }}'
- name: (Sanity) echo back environment
shell: pwsh
run: Write-Host $($Env:JJ_AZ_SECRET.length -gt 0) $Env:JJ_AZ_APP_ID $Env:JJ_AZ_TENANT_ID
- name: Connect Azure account
shell: pwsh
run: ./cicd/PS-Connect-AZ-Account.ps1
run: \& '${{ github.workspace }}/cicd/PS-Connect-AZ-Account.ps1'

0 comments on commit 2225477

Please sign in to comment.