Release 1.1.299 #303
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: Ensure Branch Validity | |
on: | |
pull_request: | |
branches: | |
- master | |
- testing | |
- hotfix | |
jobs: | |
check_master_branch: | |
runs-on: ubuntu-latest | |
if: github.base_ref == 'master' | |
steps: | |
- name: Check if PR is from 'dev' or 'hotfix' | |
if: github.head_ref != 'dev' && github.head_ref != 'hotfix' | |
run: | | |
echo "Pull requests to 'master' are only allowed from 'dev' or 'hotfix'." | |
exit 1 | |
allow_to_testing: | |
runs-on: ubuntu-latest | |
if: github.base_ref == 'dev' | |
steps: | |
- name: Allow PR to 'dev' | |
run: echo "Pull request to 'dev' allowed." |