From 59e57cee840886e8af43e50ab74fa48fdc137a41 Mon Sep 17 00:00:00 2001 From: Serene <33189705+Serene-Arc@users.noreply.github.com> Date: Sat, 16 Jul 2022 13:13:23 +1000 Subject: [PATCH] Create protect_master.yml --- .github/workflows/protect_master.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/protect_master.yml diff --git a/.github/workflows/protect_master.yml b/.github/workflows/protect_master.yml new file mode 100644 index 0000000..6267b77 --- /dev/null +++ b/.github/workflows/protect_master.yml @@ -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;