mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-12-29 19:05:05 +08:00
warns_merge_master.yml
This commit is contained in:
parent
82a973c043
commit
4c3826baf3
23
.github/workflows/warns_merge_master.yml
vendored
23
.github/workflows/warns_merge_master.yml
vendored
@ -1,19 +1,20 @@
|
||||
name: Pull requests can't target master branch
|
||||
|
||||
"on":
|
||||
|
||||
name: Warn Against Merging to Master
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- reopened
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
check:
|
||||
prevent-master-merge:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Warning marge into master
|
||||
run: |
|
||||
echo -e "::warning::This pull request directly merge into \"master\" branch, normally development happens on \"dev\" branch."
|
||||
exit 1
|
||||
- name: Check Pull Request Target
|
||||
run: |
|
||||
echo "Warning: You are trying to merge into the master branch."
|
||||
exit 1
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user