Add workflows to extra branches
Some checks failed
Build Dev instance / build (push) Has been cancelled

This commit is contained in:
2026-03-03 16:09:02 +11:00
parent 8fe53563d0
commit d154778199
3 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
name: Auto-Sync from Mirror
on:
push:
repository: "Pluralflux/Pluralflux"
branches: [main,develop]
jobs:
sync:
runs-on: ubuntu-latest
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 reset --hard origin/main
git push origin "refs/remotes/upstream/*:refs/heads/*" --force-with-lease
git merge upstream/main -m "Syncing from github"
git push origin main