mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-22 00:44:41 +12:00
ci: check deploy branch vercel
This commit is contained in:
parent
d0e3c972b4
commit
07a5cd7048
1 changed files with 11 additions and 0 deletions
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
|
Loading…
Reference in a new issue