mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
Add ignore vercel preview script (#6320)
skip building preview of docs for anything branch that doesn't start with `__docs__`. will eventually update to look at code diff directories but patching for now
This commit is contained in:
parent
7a48d9ee82
commit
2eea5d4cb4
14
docs/docs_skeleton/ignore_build.sh
Executable file
14
docs/docs_skeleton/ignore_build.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"
|
||||
|
||||
if [[ $VERCEL_GIT_COMMIT_REF = __docs__* ]] ; then
|
||||
# Proceed with the build
|
||||
echo "✅ - Build can proceed"
|
||||
exit 1;
|
||||
|
||||
else
|
||||
# Don't build
|
||||
echo "🛑 - Build cancelled"
|
||||
exit 0;
|
||||
fi
|
Loading…
Reference in New Issue
Block a user