1
0
Fork 0

Create protect_master.yml

This commit is contained in:
Serene 2022-07-16 13:13:23 +10:00 committed by GitHub
parent 36e32d4bff
commit 59e57cee84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

13
.github/workflows/protect_master.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Protect master branch
on:
pull_request:
branches:
- master
jobs:
merge_check:
runs-on: ubuntu-latest
steps:
- name: Check if the pull request is mergeable to master
run: |
if [[ "$GITHUB_HEAD_REF" == 'development' && "$GITHUB_REPOSITORY" == 'aliparlakci/bulk-downloader-for-reddit' ]]; then exit 0; else exit 1; fi;