Files
PluralFlux-infra/.gitea/workflows/sync-from-mirror.yaml
Claudia 49cf7ef585
Some checks failed
nodeJS remote worker / build (push) Has been cancelled
Update .gitea/workflows/sync-from-mirror.yaml
2026-03-05 16:57:28 +11:00

29 lines
715 B
YAML

name: Auto-Sync from Mirror
on:
push:
repository: "Pluralflux/Pluralflux"
branches: ["*"]
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
TARGET=${{ github.ref_name }}
git merge upstream/$TARGET -m "Syncing from github" --strategy-option ours
git push origin $TARGET