Skip to content

Commit

Permalink
fix: fix deploy var (#514)
Browse files Browse the repository at this point in the history
Fixes issue with prod deploy due to secrets not being available for job
conditionals: actions/runner#520

This switches to using a repository variable which should be appropriate
since the value can only be `true` or `false`
  • Loading branch information
codemonkey800 authored Feb 29, 2024
1 parent 097e271 commit bea40d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
name: Run e2e test on staging
uses: chanzuckerberg/cryoet-data-portal/.github/workflows/frontend-e2e-tests.yml@main
secrets: inherit
# The secret IS_DEPLOY_ALLOWED is used to manually gate the prod deploys
if: ${{ secrets.IS_DEPLOY_ALLOWED == 'true' }}
# The variable IS_DEPLOY_ALLOWED is used to manually gate the prod deploys
if: vars.IS_DEPLOY_ALLOWED == 'true'
with:
environment: staging

Expand Down

0 comments on commit bea40d0

Please sign in to comment.