Skip to content

Commit

Permalink
chore: ci check for new env var
Browse files Browse the repository at this point in the history
  • Loading branch information
berenteb committed Mar 6, 2024
1 parent e02b609 commit 98d408a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-latest
env:
EXPO_PUBLIC_API_BASE_URL: ${{ vars.EXPO_PUBLIC_API_BASE_URL }}
EXPO_PUBLIC_QNA_API_BASE_URL: ${{ vars.EXPO_PUBLIC_QNA_API_BASE_URL }}
permissions:
contents: read
pull-requests: write
Expand All @@ -27,6 +28,10 @@ jobs:
echo "EXPO_PUBLIC_API_BASE_URL is not set"
exit 1
fi
if [ -z "${{ vars.EXPO_PUBLIC_QNA_API_BASE_URL }}" ]; then
echo "EXPO_PUBLIC_QNA_API_BASE_URL is not set"
exit 1
fi
- name: Checkout repository
uses: actions/checkout@v3

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
runs-on: ubuntu-latest
env:
EXPO_PUBLIC_API_BASE_URL: ${{ vars.EXPO_PUBLIC_API_BASE_URL }}
EXPO_PUBLIC_QNA_API_BASE_URL: ${{ vars.EXPO_PUBLIC_QNA_API_BASE_URL }}
steps:
- name: Check for EXPO_TOKEN
run: |
Expand All @@ -24,6 +25,10 @@ jobs:
echo "EXPO_PUBLIC_API_BASE_URL is not set"
exit 1
fi
if [ -z "${{ vars.EXPO_PUBLIC_QNA_API_BASE_URL }}" ]; then
echo "EXPO_PUBLIC_QNA_API_BASE_URL is not set"
exit 1
fi
- name: Checkout repository
uses: actions/checkout@v3

Expand Down

0 comments on commit 98d408a

Please sign in to comment.