-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf6e1ef
commit fdeb36f
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Mirror Comfyanonymous/ComfyUI Repo | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 * * * *' # Runs every hour, adjust to your needs | ||
|
||
jobs: | ||
mirror: | ||
name: Mirror Repository to Comfyanonymous/ComfyUI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Mirror Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "[email protected]" | ||
- name: Add Remote Upstream | ||
run: | | ||
git remote add upstream https://github.com/comfyanonymous/ComfyUI.git | ||
- name: Fetch Upstream Changes | ||
run: | | ||
git fetch upstream master | ||
- name: Checkout Master Branch | ||
run: | | ||
git fetch --all | ||
git checkout master | ||
- name: Rebase Upstream Changes | ||
run: | | ||
git rebase upstream/master | ||
- name: Push to Mirror | ||
run: | | ||
git remote set-url origin https://x-access-token:${{ secrets.ACCESS_TOKEN }}@github.com/Comfy-Org/ComfyUI.git | ||
git push origin master -f | ||
env: | ||
GIT_SSH_COMMAND: ssh -v |