ci: allow manual PR run and skip main as base
PR — Ouverture automatique / create-pr (push) Successful in 3s
CD — Déploiement / deploy (push) Failing after 1s

This commit is contained in:
2026-10-14 15:48:08 +02:00
parent cc397e96d8
commit 37e0b542ae
+5
View File
@@ -3,6 +3,7 @@ name: PR — Ouverture automatique
on:
push:
branches-ignore: [main]
workflow_dispatch:
jobs:
create-pr:
@@ -23,6 +24,10 @@ jobs:
BRANCH: ${{ github.ref_name }}
run: |
set -eu
if [ "$BRANCH" = "main" ]; then
echo "main est la base : aucune PR à ouvrir."
exit 0
fi
title=$(git log -1 --pretty=%s)
body=$(git log -1 --pretty=%b)
[ -n "$body" ] || body="PR automatique de $BRANCH vers main."