forked from jhipster/generator-jhipster
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (29 loc) · 879 Bytes
/
sync.yml
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
name: 'Sync'
on:
workflow_dispatch:
schedule:
- cron: '10 */2 * * *'
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: 'SETUP: Checkout generator-jhipster'
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: 'Rebase'
run: |
git config --global user.email "[email protected]"
git config --global user.name "Marcelo Shima"
git remote add upstream https://github.com/jhipster/generator-jhipster.git
git remote -v
git fetch upstream main
git branch -va
git branch upstream-main upstream/main
git push origin upstream-main
git checkout main
git rebase upstream/main
git push -f origin
#git fetch origin upstream_main
#git checkout upstream_main
#git rebase upstream/main