File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Branch Protection
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - master
7+
8+ permissions :
9+ contents : read
10+
11+ jobs :
12+ check-source-branch :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Check if PR is from develop branch
16+ if : github.head_ref != 'develop'
17+ run : |
18+ echo "Error: Pull requests to master branch are only allowed from develop branch"
19+ echo "Current source branch: ${{ github.head_ref }}"
20+ exit 1
21+
22+ - name : PR from develop approved
23+ if : github.head_ref == 'develop'
24+ run : |
25+ echo "✓ Pull request from develop branch to master is allowed"
Original file line number Diff line number Diff line change 22 <modelVersion >4.0.0</modelVersion >
33 <groupId >org.swisspush</groupId >
44 <artifactId >rest-mirror</artifactId >
5- <version >3.1.4 -SNAPSHOT</version >
5+ <version >3.1.5 -SNAPSHOT</version >
66 <name >rest-mirror</name >
77 <description >
88 A verticle that mirrors resources, which are provided as zip into a rest storage.
You can’t perform that action at this time.
0 commit comments