Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix: use env var
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Apr 7, 2021
1 parent d5ad4a5 commit 0430d1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ jobs:
LOCATION: northeurope
APP_NAME: nrfassettrackerprod
B2C_TENANT: nrfassettrackerprod
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}

if: env.AZURE_CREDENTIALS != ''
if: ${{ env.CD == '1' }}

steps:
- uses: actions/checkout@v2
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
APP_NAME: nrfassettrackerci
B2C_TENANT: nrfassettrackerciusers
LOCATION: northeurope
APP_REG_CLIENT_ID: ${{ secrets.E2E_APP_REG_CLIENT_ID }}
B2C_CLIENT_SECRET: ${{ secrets.E2E_B2C_CLIENT_SECRET }}
B2C_TENANT_ID: ${{ secrets.E2E_B2C_TENANT_ID }}
E2E_AZURE_CREDENTIALS: ${{ secrets.E2E_AZURE_CREDENTIALS }}
APP_REG_CLIENT_ID: ${{ secrets.APP_REG_CLIENT_ID }}
B2C_CLIENT_SECRET: ${{ secrets.B2C_CLIENT_SECRET }}
B2C_TENANT_ID: ${{ secrets.B2C_TENANT_ID }}

if: env.E2E_AZURE_CREDENTIALS != ''
if: ${{ env.ENABLE_E2E_TESTS == '1' }}

steps:
- uses: actions/checkout@v2
Expand All @@ -35,7 +34,7 @@ jobs:
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.E2E_AZURE_CREDENTIALS }}
creds: ${{ secrets.AZURE_CREDENTIALS }}
- run: az account list --output table
- name: Install Azures Functions CLI
run: |
Expand Down

0 comments on commit 0430d1e

Please sign in to comment.