File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments