aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/warns_merge_master.yml
blob: ae2aab6ba8ce5684755b5fb4083267111bcd23cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: Pull requests can't target master branch

"on":
  pull_request:
    types:
      - opened
      - synchronize
      - reopened
    branches:
      - master

jobs:
  check:
    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