Files
PluralFlux-infra/.gitea/workflows/sync-from-mirror.yaml
Aster 97a742fa22
All checks were successful
Build Dev instance / build (push) Successful in 1m8s
update workflow to put branch references into quotes and add Develop branch
2026-03-06 05:51:56 +11:00

26 lines
732 B
YAML

name: Auto-Sync from Mirror
on:
push:
repository: "Pluralflux/Pluralflux"
branches: ['main', 'Develop', 'develop']
workflow_dispatch:
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