mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 13:28:33 +00:00
Merge pull request #818 from Artemis-RGB/feature/disallow-pr-master
CI - disallow PRs to master from any branch but dev
This commit is contained in:
commit
bd723dfc1c
17
.github/workflows/pr-branch.yml
vendored
Normal file
17
.github/workflows/pr-branch.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
name: Check pull request branch
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- synchronize
|
||||
jobs:
|
||||
check-branches:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check branches
|
||||
run: |
|
||||
if [ ${{ github.head_ref }} != "development" ] && [ ${{ github.base_ref }} == "master" ]; then
|
||||
echo "Merge requests to master are only allowed from development."
|
||||
exit 1
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user