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