From ecdfd8dd4005725ff714ebba7df3f68e522a3410 Mon Sep 17 00:00:00 2001 From: Renaud Heluin Date: Thu, 9 Oct 2025 14:08:56 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20ajout=20d'un=20script=20pour=20g=C3=A9r?= =?UTF-8?q?er=20le=20processus=20de=20construction=20en=20fonction=20de=20?= =?UTF-8?q?la=20branche=20sur=20Vercel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/script.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/script.sh diff --git a/docs/script.sh b/docs/script.sh new file mode 100644 index 00000000..cd5d74f0 --- /dev/null +++ b/docs/script.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# https://vercel.com/guides/how-do-i-use-the-ignored-build-step-field-on-vercel + +echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF" + +if [[ "$VERCEL_GIT_COMMIT_REF" == "main" || "$VERCEL_GIT_COMMIT_REF" == "cms" || "$VERCEL_GIT_COMMIT_REF" == "feat/cms" ]] ; then + # Proceed with the build + echo "✅ - Build can proceed" + exit 1; + +else + # Don't build + echo "🛑 - Build cancelled" + exit 0; +fi \ No newline at end of file