{"id":25208079,"url":"https://github.com/comfy-org/comfy-action","last_synced_at":"2025-09-08T13:40:50.351Z","repository":{"id":230289818,"uuid":"778977613","full_name":"Comfy-Org/comfy-action","owner":"Comfy-Org","description":"Sets up ComfyUI on MacOS/Linux/Windows and runs a workflow json.","archived":false,"fork":false,"pushed_at":"2024-12-08T02:37:20.000Z","size":287,"stargazers_count":15,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-08T03:24:52.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Comfy-Org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-28T19:38:19.000Z","updated_at":"2024-12-08T02:37:24.000Z","dependencies_parsed_at":"2024-04-02T03:26:35.463Z","dependency_job_id":"6f7bc0fc-98d2-4a7f-bb3f-beed8e5a4825","html_url":"https://github.com/Comfy-Org/comfy-action","commit_stats":null,"previous_names":["drip-art/comfymac-action","drip-art/comfy-action","comfy-org/comfy-action"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comfy-Org%2Fcomfy-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comfy-Org%2Fcomfy-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comfy-Org%2Fcomfy-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comfy-Org%2Fcomfy-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Comfy-Org","download_url":"https://codeload.github.com/Comfy-Org/comfy-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238109529,"owners_count":19417881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-10T12:18:39.535Z","updated_at":"2025-02-10T12:18:40.033Z","avatar_url":"https://github.com/Comfy-Org.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# comfy-action\n\n[![Verify GitHub Action YML](https://github.com/Comfy-Org/comfy-action/actions/workflows/verify-action.yml/badge.svg)](https://github.com/Comfy-Org/comfy-action/actions/workflows/verify-action.yml)\n\nSets up ComfyUI on Github Action Runner and execute a workflow json.\n\nThis is meant to be run in the ComfyUI repository.\n\n### Set up your local self-hosted runner\n\n- Follow the steps here: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners\n\n### Modify the script to run your workflow\n\n- Remember to ALWAYS ALWAYS add `[Win]` or `[Unix]` to the step name\n- Use `[Win-Only]` for Windows only steps\n- Use `[Unix-Only]` for Unix only steps\n\n### Test running the workflow\n\n- Manually run the action.py script\n```bash\npython action.py \\\n  --comfy-workflow-names=\"default.json,lora.json\" \\\n  --github-action-workflow-name=\"test\" \\\n  --os=mac \\\n  --run-id=10 \\\n  --repo=fake-repo \\\n  --cuda-version=12.1 \\\n  --commit-hash=12345 \\\n  --commit-time=\"2024-06-12T01:07:58-04:00\" \\\n  --commit-message=\"test message\" \\\n  --branch-name=\"main\" \\\n  --gsc-bucket-name=\"comfy-ci-results\" \\\n  --workspace-path=/Users/yoland/Code/ComfyUI \\\n  --output-file-prefix=\"ComfyUI\" \\\n  --api-endpoint=\"http://localhost:8080/upload-artifact\" # Need you to spin up a local CI backend server to receive the artifact \n```\n- Create a temporary workflow json in Comfy repo to use your action branch e.g.\n  `uses comfy-org/comfy-action@\u003cbranch-name\u003e`\n\n### Make sure to verify using action_yaml_checker.py\n\nRun the following command to verify the action.yml file:\n\n```bash\npython action_yaml_checker.py action.yml\n```\n\nAnd you can get something like this to manually verify the steps are consistent\n\n```\n╒═══════════════════════════════════════╤══════════════════════════════════════╕\n│ Unix                                  │ Windows                              │\n╞═══════════════════════════════════════╪══════════════════════════════════════╡\n│ [Unix] Auth to GCS                    │ [Win] Auth to GCS                    │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│ [Unix] Setup Conda                    │ [Win] Setup Conda                    │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│                                       │ [Win-Only] Install Pytorch           │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│ [Unix] Install dependencies           │ [Win] Install dependencies           │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│ [Unix] Check conda environment        │ [Win] Check conda environment        │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│ [Unix] Download models                │ [Win] Download models                │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│ [Unix] Run ComfyUI                    │ [Win] Run ComfyUI                    │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│ [Unix] Check if the server is running │ [Win] Check if the server is running │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│ [Unix] Get Commit Details             │ [Win] Get Commit Details             │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│ [Unix] Run Python Action              │ [Win] Run Python Action              │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│ [Unix] Upload Output Files            │ [Win] Upload Output Files            │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│ [Unix] Upload log file                │ [Win] Upload log file                │\n├───────────────────────────────────────┼──────────────────────────────────────┤\n│ [Unix] Cleanup output files only      │ [Win] Cleanup output files only      │\n╘═══════════════════════════════════════╧══════════════════════════════════════╛\n```\n\nYou can also do `-c` for complete step list and `-k` for key it looks up (e.g.\n`uses`, `if`, `run`, `shell`), and fallback key for if the key is not available\n\n```bash\npython action_yaml_checker.py -c -k shell --fallback-key uses action.yml\n```\n\nYou will get the name of the step and also the shell it uses (or if shell is not\navailable for the step, then \"uses\" info)\n\n```\n╒═══════════════════════════════════════╤════════════════════════════════════════╕\n│ Unix                                  │ Windows                                │\n╞═══════════════════════════════════════╪════════════════════════════════════════╡\n│ [Unix] Auth to GCS                    │ [Win] Auth to GCS                      │\n│ google-github-actions/auth@v2         │ google-github-actions/auth@v2          │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│ [Unix] Setup Conda                    │ [Win] Setup Conda                      │\n│ conda-incubator/setup-miniconda@v3    │ conda-incubator/setup-miniconda@v3.0.3 │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│                                       │ [Win-Only] Install Pytorch             │\n│                                       │ powershell                             │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│ [Unix] Install dependencies           │ [Win] Install dependencies             │\n│ bash -el {0}                          │ powershell                             │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│ [Unix] Check conda environment        │ [Win] Check conda environment          │\n│ bash -el {0}                          │ powershell                             │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│ [Unix] Download models                │ [Win] Download models                  │\n│ bash -el {0}                          │ powershell                             │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│ [Unix] Run ComfyUI                    │ [Win] Run ComfyUI                      │\n│ bash -el {0}                          │ powershell                             │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│ [Unix] Check if the server is running │ [Win] Check if the server is running   │\n│ bash -el {0}                          │ powershell                             │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│ [Unix] Get Commit Details             │ [Win] Get Commit Details               │\n│ bash -el {0}                          │ powershell                             │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│ [Unix] Run Python Action              │ [Win] Run Python Action                │\n│ bash -el {0}                          │ powershell                             │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│ [Unix] Upload Output Files            │ [Win] Upload Output Files              │\n│ actions/upload-artifact@v4            │ actions/upload-artifact@v4             │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│ [Unix] Upload log file                │ [Win] Upload log file                  │\n│ actions/upload-artifact@v4            │ actions/upload-artifact@v4             │\n├───────────────────────────────────────┼────────────────────────────────────────┤\n│ [Unix] Cleanup output files only      │ [Win] Cleanup output files only        │\n│ bash -el {0}                          │ powershell                             │\n╘═══════════════════════════════════════╧════════════════════════════════════════╛\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomfy-org%2Fcomfy-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomfy-org%2Fcomfy-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomfy-org%2Fcomfy-action/lists"}