From 62b8fb375943cb86073cb28645924afda068af79 Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 4 Jul 2025 13:43:39 +0200 Subject: [PATCH] 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 0000000..d70be3a --- /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