Skip to content

Allow previews on autodeploy branch #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
# Auto deploy should only trigger when the auto_deploy_branch match the current ref.
# We also check if `environment` has already been set, otherwise this flow could cause
# manual triggers to deploy to `auto_deploy_env` instead of the one specified in the trigger.
if: (inputs.auto_deploy_branch == github.ref_name) && inputs.environment == ''
if: (inputs.auto_deploy_branch == github.ref_name) && inputs.environment == '' && env.DEPLOYMENT_ENV != 'preview'
run: |
echo "Auto deploy branch ($AUTO_DEPLOY_BRANCH) matches current branch. Attempting autodeploy to $AUTO_DEPLOY_ENV."
echo "DEPLOYMENT_ENV=${AUTO_DEPLOY_ENV}" >> $GITHUB_ENV
Expand Down