Skip to content

Commit 126ce95

Browse files
authored
Merge pull request #235 from cnumr/cms
feat: ajout d'un script pour gérer le processus de construction en fo…
2 parents 8dc8042 + ecdfd8d commit 126ce95

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/script.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# https://vercel.com/guides/how-do-i-use-the-ignored-build-step-field-on-vercel
4+
5+
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"
6+
7+
if [[ "$VERCEL_GIT_COMMIT_REF" == "main" || "$VERCEL_GIT_COMMIT_REF" == "cms" || "$VERCEL_GIT_COMMIT_REF" == "feat/cms" ]] ; then
8+
# Proceed with the build
9+
echo "✅ - Build can proceed"
10+
exit 1;
11+
12+
else
13+
# Don't build
14+
echo "🛑 - Build cancelled"
15+
exit 0;
16+
fi

0 commit comments

Comments
 (0)