ci: allow manual PR run and skip main as base
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user