From c16b397cfa19757a053444e739dc888387e39c91 Mon Sep 17 00:00:00 2001 From: Laika Date: Sat, 28 Feb 2026 17:36:49 +1100 Subject: [PATCH] Add .gitea/workflows/sync-from-mirror.yaml --- .gitea/workflows/sync-from-mirror.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitea/workflows/sync-from-mirror.yaml diff --git a/.gitea/workflows/sync-from-mirror.yaml b/.gitea/workflows/sync-from-mirror.yaml new file mode 100644 index 0000000..c010110 --- /dev/null +++ b/.gitea/workflows/sync-from-mirror.yaml @@ -0,0 +1,23 @@ +name: Auto-Sync from Mirror +on: + # This triggers when the MIRROR repo gets an update + push: + branches: [main,develop] + +jobs: + sync: + runs-on: ubuntu-latest # Your local gitea runner + steps: + - name: Checkout Fork + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITEA_TOKEN }} + + - name: Pull from Mirror + run: | + git remote add upstream https://engineering.sanya.gay/PluralFlux/PluralFlux.git + git fetch upstream --prune + git push origin "refs/remotes/upstream/*:refs/heads/*" --force-with-lease + git merge upstream/main -m "Syncing from github" + git push origin main \ No newline at end of file