From 62b8fb375943cb86073cb28645924afda068af79 Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 4 Jul 2025 13:43:39 +0200 Subject: [PATCH 1/3] Add workflow to sync fork with upstream --- .github/workflows/sync-fork.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/sync-fork.yml diff --git a/.github/workflows/sync-fork.yml b/.github/workflows/sync-fork.yml new file mode 100644 index 00000000..d70be3af --- /dev/null +++ b/.github/workflows/sync-fork.yml @@ -0,0 +1,30 @@ +name: Sync Fork with Upstream +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout Forked Repository + uses: actions/checkout@v4 + with: + fetch-tags: true + token: ${{ secrets.SYNC_FORK_TOKEN }} + + - name: Configure comitter + run: | + git config --global user.email "mkirkeng@leukeleu.nl" + git config --global user.name "Mathias Kirkeng" + + - name: Add Upstream Remote + run: git remote add upstream https://github.com/astral-sh/setup-uv.git + + - name: Fetch Upstream Changes + run: git fetch --prune --all --verbose + + - name: Push changes to origin + run: | + git push origin refs/heads/main --tags --verbose From 75ed3658c921af03ceefe665e9fc24f7d45e9df6 Mon Sep 17 00:00:00 2001 From: Mathias Kirkeng <120015269+mkirkeng-leukeleu@users.noreply.github.com> Date: Tue, 22 Jul 2025 13:15:11 +0200 Subject: [PATCH 2/3] Change git comitter --- .github/workflows/sync-fork.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-fork.yml b/.github/workflows/sync-fork.yml index d70be3af..7bb7895d 100644 --- a/.github/workflows/sync-fork.yml +++ b/.github/workflows/sync-fork.yml @@ -16,8 +16,8 @@ jobs: - name: Configure comitter run: | - git config --global user.email "mkirkeng@leukeleu.nl" - git config --global user.name "Mathias Kirkeng" + git config --global user.email "deployer@leukeleu.nl" + git config --global user.name "Leukeleu bot" - name: Add Upstream Remote run: git remote add upstream https://github.com/astral-sh/setup-uv.git From 2ae24d03c24280abe0f2a33d1423606a56ea9ba5 Mon Sep 17 00:00:00 2001 From: Mathias Kirkeng <120015269+mkirkeng-leukeleu@users.noreply.github.com> Date: Fri, 8 Aug 2025 12:03:28 +0200 Subject: [PATCH 3/3] Update .github/workflows/sync-fork.yml Co-authored-by: Arne de Laat --- .github/workflows/sync-fork.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync-fork.yml b/.github/workflows/sync-fork.yml index 7bb7895d..1c94c579 100644 --- a/.github/workflows/sync-fork.yml +++ b/.github/workflows/sync-fork.yml @@ -23,8 +23,7 @@ jobs: run: git remote add upstream https://github.com/astral-sh/setup-uv.git - name: Fetch Upstream Changes - run: git fetch --prune --all --verbose + run: git fetch upstream --prune --tags --verbose - name: Push changes to origin - run: | - git push origin refs/heads/main --tags --verbose + run: git push origin --tags --verbose