git fetch
This commit is contained in:
parent
592d5754eb
commit
5860af9d0b
|
@ -22,6 +22,7 @@ tasks:
|
||||||
# Get current git branch
|
# Get current git branch
|
||||||
|
|
||||||
echo "Deploying to Vercel"
|
echo "Deploying to Vercel"
|
||||||
|
git fetch origin trunk
|
||||||
# If trunk branch, use --prod, otherwise just deploy
|
# If trunk branch, use --prod, otherwise just deploy
|
||||||
if [ "$(git rev-parse origin/trunk)" != "$(git rev-parse HEAD)" ]; then
|
if [ "$(git rev-parse origin/trunk)" != "$(git rev-parse HEAD)" ]; then
|
||||||
echo "Deploying to production"
|
echo "Deploying to production"
|
||||||
|
|
Loading…
Reference in a new issue