Skip to content

Commit fa2dd5a

Browse files
committed
Sync master to development automatically
Signed-off-by: Marvin Froeder <[email protected]>
1 parent 69d8be1 commit fa2dd5a

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Sync master to development
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
sync-master-to-development:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Configure Git
17+
run: |
18+
git config user.name "github-actions[bot]"
19+
git config user.email "github-actions[bot]@users.noreply.github.com"
20+
21+
- name: Fetch all branches
22+
run: git fetch --all
23+
24+
- name: Check for changes between branches
25+
id: check_diff
26+
run: |
27+
git checkout master
28+
git pull
29+
git checkout querydsl-7.0
30+
git pull
31+
git diff --exit-code master querydsl-7.0
32+
continue-on-error: true
33+
34+
- name: Create Pull Request
35+
if: steps.check_diff.outcome == 'failure'
36+
uses: peter-evans/create-pull-request@v5
37+
with:
38+
source: master
39+
target: querydsl-7.0
40+
title: 'Sync master into querydsl-7.0'
41+
body: 'This PR syncs changes from master into querydsl-7.0.'
42+
branch: 'sync-master-to-querydsl-7.0'
43+
44+
- name: Automatically Merge PR
45+
if: steps.check_diff.outcome == 'failure'
46+
uses: ahmadnassri/action-auto-merge@v2
47+
with:
48+
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
merge-method: merge

0 commit comments

Comments
 (0)