mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-04 14:16:57 +00:00
add auto sync workflow
This commit is contained in:
parent
61ff48d729
commit
1462d53431
35
.github/workflows/sync.yml
vendored
Normal file
35
.github/workflows/sync.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: Sync fork with upstream
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "15 3 * * *" # runs daily at 03:15 UTC
|
||||||
|
workflow_dispatch: {} # allow manual run
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
env:
|
||||||
|
UPSTREAM: deepbeepmeep/Wan2GP
|
||||||
|
UPSTREAM_BRANCH: main
|
||||||
|
TARGET_BRANCH: main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout fork
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Add upstream remote
|
||||||
|
run: |
|
||||||
|
git remote add upstream https://github.com/${UPSTREAM}.git
|
||||||
|
git fetch upstream ${UPSTREAM_BRANCH}
|
||||||
|
|
||||||
|
- name: Fast-forward fork
|
||||||
|
run: |
|
||||||
|
git checkout ${TARGET_BRANCH}
|
||||||
|
# Try a strict fast-forward; fail if conflicts or diverged history.
|
||||||
|
git merge --ff-only upstream/${UPSTREAM_BRANCH}
|
||||||
|
git push origin ${TARGET_BRANCH}
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
.*
|
# .*
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
# *.jpg
|
# *.jpg
|
||||||
*.jpeg
|
*.jpeg
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user