improve: add error handling for devtools copy in setup-comfyui-server

Add helpful error message when cp fails to copy devtools files.
This clarifies the requirement that the frontend repo must be
checked out before using this action.
This commit is contained in:
snomiao
2025-10-07 00:19:09 +00:00
parent d78944c895
commit a73bba63f4

View File

@@ -25,7 +25,12 @@ runs:
shell: bash
run: |
mkdir -p ComfyUI/custom_nodes/ComfyUI_devtools
cp -r ./tools/devtools/* ComfyUI/custom_nodes/ComfyUI_devtools/
if ! cp -r ./tools/devtools/* ComfyUI/custom_nodes/ComfyUI_devtools/; then
echo "::error::Failed to copy ComfyUI_devtools from ./tools/devtools/"
echo "::error::This action assumes the ComfyUI_frontend repository is checked out in the current working directory."
echo "::error::Please ensure you have run 'actions/checkout@v5' before calling this action."
exit 1
fi
- name: Setup Python
uses: actions/setup-python@v4