-
-
Notifications
You must be signed in to change notification settings - Fork 80
40 lines (33 loc) · 1 KB
/
sync-master-to-development.yml
File metadata and controls
40 lines (33 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Sync master to development
on:
push:
branches:
- master
jobs:
sync-master-to-development:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Fetch all branches
run: git fetch --all
- name: Check for changes between branches
id: check_diff
run: |
git checkout master
git pull
git checkout querydsl-7.0
git pull
git diff --exit-code master querydsl-7.0
continue-on-error: true
- name: Create Pull Request
if: steps.check_diff.outcome == 'failure'
run: |
gh pr create --base querydsl-7.0 --head master -t "Sync master into querydsl-7.0" -b "This PR syncs changes from master into querydsl-7.0"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true