forked from PluralFlux/PluralFlux
Update .gitea/workflows/sync-from-mirror.yaml
Some checks failed
nodeJS remote worker / build (push) Has been cancelled
Some checks failed
nodeJS remote worker / build (push) Has been cancelled
This commit is contained in:
@@ -2,7 +2,7 @@ name: Auto-Sync from Mirror
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
repository: "Pluralflux/Pluralflux"
|
repository: "Pluralflux/Pluralflux"
|
||||||
branches: [main,develop]
|
branches: ["*"]
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@@ -20,7 +20,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git remote add upstream https://engineering.sanya.gay/PluralFlux/PluralFlux.git
|
git remote add upstream https://engineering.sanya.gay/PluralFlux/PluralFlux.git
|
||||||
git fetch upstream --prune
|
git fetch upstream --prune
|
||||||
|
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
git push origin "refs/remotes/upstream/*:refs/heads/*" --force-with-lease
|
|
||||||
git merge upstream/main -m "Syncing from github"
|
TARGET=${{ github.ref_name }}
|
||||||
git push origin main
|
|
||||||
|
git merge upstream/$TARGET -m "Syncing from github" --strategy-option ours
|
||||||
|
git push origin $TARGET
|
||||||
Reference in New Issue
Block a user