Skip to content

Commit 5ce65e9

Browse files
committed
[skip ci] Add sync workflow
1 parent c4e6e19 commit 5ce65e9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/sync.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Sync'
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '10 */2 * * *'
6+
7+
jobs:
8+
sync:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 'SETUP: Checkout generator-jhipster'
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: 'Rebase'
16+
run: |
17+
git config --global user.email "[email protected]"
18+
git config --global user.name "Marcelo Shima"
19+
git remote add upstream https://github.com/jhipster/generator-jhipster.git
20+
git remote -v
21+
git fetch upstream main
22+
git branch -va
23+
git rebase upstream/main
24+
git push -f origin

0 commit comments

Comments
 (0)