Skip to content

Commit

Permalink
Merge pull request #2215 from filipesilva/prerelease-domain
Browse files Browse the repository at this point in the history
ci: prerelease comparison should be to a string
  • Loading branch information
filipesilva authored Jun 16, 2022
2 parents 3d4a2f4 + f8a6bf0 commit 0525346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
scope: athens-research
vercel-args: './vercel-release/'
# Poor mans ternary operator https://github.com/actions/runner/issues/409#issuecomment-727565588
alias-domains: ${{ env.PRERELEASE && env.PRERELEASE_DOMAIN || env.RELEASE_DOMAIN }}
alias-domains: ${{ env.PRERELEASE == 'true' && env.PRERELEASE_DOMAIN || env.RELEASE_DOMAIN }}
env:
PRERELEASE: ${{ contains(github.ref, '-alpha.') || contains(github.ref, '-beta.') || contains(github.ref, '-rc.')}}
PRERELEASE_DOMAIN: beta.athensresearch.org
Expand Down

0 comments on commit 0525346

Please sign in to comment.