blob: aaf4402220ab86429d4e36d61c63894cb8dd332e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# We deploy main, version branches and deploy previews only
if echo $HEAD | grep -E '^(main|v[[:digit:]]+\.([[:digit:]])+-branch)$' || echo $CONTEXT | grep '^deploy-preview$'
then
echo "Head '$HEAD' matches a deployed branch, or context is deploy preview, checking for git changes."
git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../app/boards/
else
echo "Head '$HEAD' does not match a deployed branch and is not a deploy preview"
exit 0
fi
|