mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
ci: add vercel check deploy branch script
This commit is contained in:
13
.github/check_deploy_branch.sh
vendored
Executable file
13
.github/check_deploy_branch.sh
vendored
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
git diff HEAD^ HEAD --quiet .
|
||||||
|
|
||||||
|
if [[ "$VERCEL_GIT_COMMIT_REF" == "main" && $? -eq 1 ]]; then
|
||||||
|
# Proceed with the build
|
||||||
|
echo "✅ - Proceed"
|
||||||
|
exit 1;
|
||||||
|
else
|
||||||
|
# Don't build
|
||||||
|
echo "🛑 - Build cancelled"
|
||||||
|
exit 0;
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user