Skip to content

Commit

Permalink
refactor: add main branch back into the should-vercel-build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
lilingxi01 committed Aug 17, 2022
1 parent c3f0775 commit 65f0e61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"

## Do not automatically trigger build when pull-requesting into `deploy` branch.
if [[ "$VERCEL_GIT_COMMIT_REF" == "candidate/"* ]] ; then
if [[ "$VERCEL_GIT_COMMIT_REF" == "main" || "$VERCEL_GIT_COMMIT_REF" == "candidate/"* ]] ; then
# Proceed with the build.
echo "✅ - Preview build can proceed"
exit 1;
Expand Down

1 comment on commit 65f0e61

@vercel
Copy link

@vercel vercel bot commented on 65f0e61 Aug 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ams-date-picker – ./

ams-date-picker-git-main-lingxi.vercel.app
ams.lingxi.li
ams-date-picker-lingxi.vercel.app

Please sign in to comment.