docs: update contribution guideline (#5188)

* fix ignore command

* fixed ignore script

* docs: update contribution guideline

* fix ignore script

* fix eslint errors

* remove exit option
This commit is contained in:
Shahed Nasser authored and GitHub committed 2023-09-22 16:08:11 +03:00
1 parent a560e5da29
commit 0c9d5ea6d4
3 files changed
+112 -44

No files matched your search

+7 -2
View File
@@ -3,12 +3,17 @@
echo "VERCEL_ENV: $VERCEL_ENV"
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"
if [[ "$VERCEL_ENV" == "production" || "$VERCEL_GIT_COMMIT_REF" = "docs/"* ]] ; then
$(git diff HEAD^ HEAD --quiet .)
diffResult=$?
echo "DIFF RESULT: $diffResult"
if [[ ("$VERCEL_ENV" == "production" && $diffResult -eq 1) || "$VERCEL_GIT_COMMIT_REF" = "docs/"* ]] ; then
# Proceed with the build
echo "✅ - Build can proceed"
exit 1;
else
# Don't build
echo "🛑 - Build cancelled"
echo "🛑 - Build cancelled: Conditions don't match"
exit 0;
fi