You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in a monorepo setup sometimes I want to trigger a build only for projects involved by a changeset and exclude those projects not involved by the changes. Your documentation suggests to use this command
git diff HEAD^ HEAD --quiet ./projects/A
The problem is that, if I push two commits, this command is not useful anymore because I compare the changes to previous commit. I'd need a reference to the previous deployed commit for the branch, so an environment variable like VERCEL_GIT_PREVIOUS_COMMIT_SHA so that I can change the command to
git diff ${VERCEL_GIT_PREVIOUS_COMMIT_SHA} HEAD --quiet ./projects/A
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
in a monorepo setup sometimes I want to trigger a build only for projects involved by a changeset and exclude those projects not involved by the changes. Your documentation suggests to use this command
The problem is that, if I push two commits, this command is not useful anymore because I compare the changes to previous commit. I'd need a reference to the previous deployed commit for the branch, so an environment variable like
VERCEL_GIT_PREVIOUS_COMMIT_SHA
so that I can change the command toIs this possible?
Beta Was this translation helpful? Give feedback.
All reactions