Skip to content

Commit 4521515

Browse files
authored
Merge pull request #53 from swisspost/develop
PR for Release
2 parents 23fa745 + 9a72d86 commit 4521515

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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"

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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.

0 commit comments

Comments
 (0)