Skip to content

Commit ea38333

Browse files
committed
Force pull requests to master to be from develop
1 parent d886242 commit ea38333

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on:
2+
pull_request: # triggers on open, reopen and synchronize by default
3+
branches: ["master"]
4+
5+
jobs:
6+
bump-version:
7+
if: ${{ github.ref }} == "refs/heads/develop"
8+
name: Is pull request from develop
9+
10+
runs-on: ubuntu-latest #self-hosted
11+
12+
steps:
13+
- name: Fail because the pull request is not from develop
14+
run: exit 1

0 commit comments

Comments
 (0)