mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
ci: check deploy branch vercel
This commit is contained in:
11
.github/check_deploy_branch.sh
vendored
Executable file
11
.github/check_deploy_branch.sh
vendored
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ "$VERCEL_GIT_COMMIT_REF" == "main" ]]; 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