Sync Parent and Grandparent Upstream #278
This file contains hidden or 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 Parent and Grandparent Upstream | |
| on: | |
| schedule: | |
| - cron: '25 3 * * *' # Täglich um 03:00 Uhr UTC ausführen | |
| workflow_dispatch: # Zusätzlich manuell auslösbar | |
| permissions: | |
| contents: write | |
| actions: write | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Repository auschecken | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: klipper-upstream | |
| token: ${{ secrets.WORKFLOW_TOKEN }} | |
| fetch-depth: 0 # Vollständige Historie holen | |
| - name: Remotes hinzufügen und updaten | |
| run: | | |
| git remote add upperstream https://github.com/Klipper3d/klipper.git || echo "Remote upperstream existiert bereits" | |
| git remote add upstream https://github.com/RF1000community/klipper.git || echo "Remote upstream existiert bereits" | |
| git fetch upperstream | |
| git fetch upstream | |
| - name: Branch klipper-upstream auschecken und updaten | |
| run: | | |
| git checkout klipper-upstream | |
| # git pull origin klipper-upstream || echo "Keine vorherigen Remote-Änderungen vorhanden" | |
| - name: Merge von upperstream/master und upstream/master in klipper-upstream | |
| run: | | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "Syncbot" | |
| git merge upperstream/master --no-edit | |
| git merge upstream/master --no-edit | |
| - name: Änderungen pushen | |
| run: | | |
| git push origin klipper-upstream |