Update prevent-wrong-pr.yml

This commit is contained in:
Moritz Utcke
2025-04-29 14:16:02 -03:00
committed by GitHub
parent 75c4e3fa2b
commit a603c5d202

View File

@@ -13,7 +13,7 @@ jobs:
steps:
- name: Prevent dev merges
run: |
if [[ "${{ github.head_ref }}" == "dev" ]]; then
if [[ "${{ github.head_ref }}" == "dev" && "${{ github.base_ref }}" == "main" ]]; then
echo "ERROR: Merging 'dev' into '${{ github.base_ref }}' is forbidden!"
exit 1
fi