Skip to content

Commit

Permalink
Merge pull request #841 from etn-ccis/fix/blui-5050-env-inputs
Browse files Browse the repository at this point in the history
Fix blui 5050 env inputs
  • Loading branch information
joebochill authored Feb 5, 2024
2 parents 86d5a21 + 8f96586 commit 542731f
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/blui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,25 +168,14 @@ jobs:
strategy:
matrix:
node-version: [18.x]
env:
REACT_APP_BRANCH: ${{ github.ref == 'refs/heads/master' && 'master' || 'dev' }}
PUBLIC_URL: ${{ github.ref == 'refs/heads/master' && '/react' || '/react-dev' }}
REACT_APP_GAID: ${{ github.ref == 'refs/heads/master' && 'G-Y2TXKYRFM0' || 'G-JY7JTQ87MB' }}

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check branch ref
run: |
if [ ${{ github.event.pull_request.base.ref == 'dev' }} ]; then
export PUBLIC_URL=/react-dev
export REACT_APP_BRANCH=dev
export REACT_APP_GAID=G-JY7JTQ87MB
echo "dev branch"
elif [ ${{ github.event.pull_request.base.ref == 'master' }} ]; then
export PUBLIC_URL=/react
export REACT_APP_BRANCH=master
export REACT_APP_GAID=G-Y2TXKYRFM0
echo "master branch"
else
echo "error exporting config"
fi
- name: Download tarball
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 542731f

Please sign in to comment.