Sync #17836
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |