From f97b845f68da1d099147eec34b115b317ece8eef Mon Sep 17 00:00:00 2001 From: Ploush Date: Sun, 7 Jun 2026 12:27:14 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20v=C3=A9rification=20sur=20master=20et=20?= =?UTF-8?q?non=20main?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forgejo/workflows/deploy.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 1b1d5b4..8d1ec74 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -1,6 +1,6 @@ # ============================================================ # Forgejo Actions — Build + Push image → Registre Forgejo -# Déclenché uniquement sur un tag A.B.C poussé sur main +# Déclenché uniquement sur un tag A.B.C poussé sur master # ============================================================ # # Prérequis : créer un jeton Forgejo dans @@ -35,17 +35,17 @@ jobs: with: fetch-depth: 0 # Indispensable pour comparer les tags existants - # ── 2. Le tag doit pointer sur un commit présent dans main ───────── - - name: Vérification — tag sur main + # ── 2. Le tag doit pointer sur un commit présent dans master ───────── + - name: Vérification — tag sur master run: | - git fetch origin main --no-tags + git fetch origin master --no-tags - if ! git merge-base --is-ancestor "${{ github.sha }}" origin/main; then - echo "❌ Le tag '${{ github.ref_name }}' ne pointe pas sur un commit de main." + if ! git merge-base --is-ancestor "${{ github.sha }}" origin/master; then + echo "Le tag '${{ github.ref_name }}' ne pointe pas sur un commit de master." exit 1 fi - echo "✅ Commit du tag présent dans main." + echo "Commit du tag présent dans master." # ── 3. Validation du format + progression de version ────────────── - name: Validation du tag et calcul des tags Docker