Skip to content

Commit 98356b5

Browse files
committed
feat: ajout d'un fichier de configuration pour améliorer la gestion des métadonnées et des options de publication
1 parent 866ccb9 commit 98356b5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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)