Skip to content

Mirror Comfyanonymous/ComfyUI Repo #67

Mirror Comfyanonymous/ComfyUI Repo

Mirror Comfyanonymous/ComfyUI Repo #67

Workflow file for this run

on:
workflow_dispatch:
schedule:
- cron: '0 * * * *' # Runs every hour, adjust to your needs
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout Mirror Repository
uses: actions/checkout@v4
with:
repository: 'Comfy-Org/ComfyUI'
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- 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 checkout master
- name: Rebase Upstream Changes
run: |
git rebase upstream/master
- name: Push to Mirror
run: |
git push origin master --force-with-lease
env:
GIT_SSH_COMMAND: ssh -v