From a57f44ad0e2087585aa9890afd129f25a180e0ee Mon Sep 17 00:00:00 2001 From: Renaud Heluin Date: Thu, 9 Oct 2025 14:20:50 +0200 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20ajout=20d'un=20nouveau=20script=20p?= =?UTF-8?q?our=20g=C3=A9rer=20le=20processus=20de=20construction=20en=20fo?= =?UTF-8?q?nction=20de=20la=20branche=20sur=20Vercel,=20rempla=C3=A7ant=20?= =?UTF-8?q?l'ancien=20script=20supprim=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/retype-action.yml | 23 +++++++++++++++++++++++ docs/script.sh | 16 ---------------- 2 files changed, 23 insertions(+), 16 deletions(-) delete mode 100644 docs/script.sh diff --git a/.github/workflows/retype-action.yml b/.github/workflows/retype-action.yml index f85a1258..7e17d12f 100644 --- a/.github/workflows/retype-action.yml +++ b/.github/workflows/retype-action.yml @@ -25,6 +25,29 @@ jobs: with: config_path: ./docs/retype.yml + - uses: 1arp/create-a-file-action@0.4.5 + with: + path: 'src' + isAbsolutePath: false + file: 'script.sh' + content: | + #!/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 + - uses: retypeapp/action-github-pages@latest with: update-branch: true diff --git a/docs/script.sh b/docs/script.sh deleted file mode 100644 index cd5d74f0..00000000 --- a/docs/script.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/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 From f685164b5068fa32252287faec9e3a044ead45ff Mon Sep 17 00:00:00 2001 From: Renaud Heluin Date: Thu, 9 Oct 2025 14:23:31 +0200 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20mise=20=C3=A0=20jour=20du=20chemin?= =?UTF-8?q?=20d'acc=C3=A8s=20dans=20le=20workflow=20retype-action=20pour?= =?UTF-8?q?=20utiliser=20le=20r=C3=A9pertoire=20racine=20au=20lieu=20de=20?= =?UTF-8?q?'src'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/retype-action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/retype-action.yml b/.github/workflows/retype-action.yml index 7e17d12f..99492939 100644 --- a/.github/workflows/retype-action.yml +++ b/.github/workflows/retype-action.yml @@ -27,7 +27,7 @@ jobs: - uses: 1arp/create-a-file-action@0.4.5 with: - path: 'src' + path: '.' isAbsolutePath: false file: 'script.sh' content: |