-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (35 loc) · 1.07 KB
/
mirror.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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