Skip to content

re-inserted and disabled party_nazis #291

re-inserted and disabled party_nazis

re-inserted and disabled party_nazis #291

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."