Restrict Branch Merge and Automatically Add PR labels to Pull Requests #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Enforce Release Branch Merge" | |
on: | |
pull_request: | |
branches: | |
- release | |
jobs: | |
check-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if PR is from the develop branch | |
if: github.head_ref != 'develop' | |
run: | | |
echo "Only the develop branch can be merged into release." | |
exit 1 |