Swap comparison logic

This commit is contained in:
Gabriel Simmer 2023-05-05 11:30:10 +01:00
parent 5860af9d0b
commit 1d8899c382
Signed by: arch
GPG key ID: C81B106D46C5B875

View file

@ -24,7 +24,7 @@ tasks:
echo "Deploying to Vercel" echo "Deploying to Vercel"
git fetch origin trunk 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"
vercel deploy --prod --token $VERCEL_API_TOKEN vercel deploy --prod --token $VERCEL_API_TOKEN
else else