Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sync Parent and Grandparent Upstream #278

Sync Parent and Grandparent Upstream

Sync Parent and Grandparent Upstream #278

Workflow file for this run

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