From 63fe59c7dec735688467e0d0db4f06d7f24ce362 Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Sun, 19 Oct 2025 23:14:47 +0200 Subject: [PATCH] Regularly fetch from upstream --- .gitea/workflows/sync-upstream.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/sync-upstream.yml diff --git a/.gitea/workflows/sync-upstream.yml b/.gitea/workflows/sync-upstream.yml new file mode 100644 index 0000000..08936bd --- /dev/null +++ b/.gitea/workflows/sync-upstream.yml @@ -0,0 +1,30 @@ +name: Sync Upstream (12h) + +on: + schedule: + - cron: "0 */12 * * *" + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout fork + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Add upstream remote + run: | + git remote add upstream https://git.suckless.org/surf || true + git fetch upstream + + - name: Merge upstream into master + run: | + git checkout master + git merge upstream/master --strategy-option ours --no-edit || true + + - name: Push merged branch + run: | + git push origin master +