Update prevent-wrong-pr.yml
This commit is contained in:
2
.github/workflows/prevent-wrong-pr.yml
vendored
2
.github/workflows/prevent-wrong-pr.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user