protect_master.yml 391 B

12345678910111213
  1. name: Protect master branch
  2. on:
  3. pull_request:
  4. branches:
  5. - master
  6. jobs:
  7. merge_check:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Check if the pull request is mergeable to master
  11. run: |
  12. if [[ "$GITHUB_HEAD_REF" == 'development' && "$GITHUB_REPOSITORY" == 'aliparlakci/bulk-downloader-for-reddit' ]]; then exit 0; else exit 1; fi;