Skip to content

Commit 9751c54

Browse files
authored
chore: improve ignore build script to ignore branches not starting with docs/ (medusajs#13309)
1 parent 5382afc commit 9751c54

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

www/ignore-build-script.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
#!/bin/bash
22

3+
# Exit early if the PR branch doesn't start with 'docs/'
4+
if [[ ! "$VERCEL_GIT_COMMIT_REF" =~ ^docs/ ]]; then
5+
echo "🛑 - Build cancelled: Branch does not start with 'docs/'"
6+
exit 0;
7+
fi
8+
39
if [[ "$1" == "docs-old" ]]; then
4-
echo "Can't build old docs"
10+
echo "🛑 - Build cancelled: Can't build old docs"
511
exit 0;
612
fi
713

0 commit comments

Comments
 (0)