From a73bba63f4d7c4de6999d4e62fe5179cba74b092 Mon Sep 17 00:00:00 2001 From: snomiao Date: Tue, 7 Oct 2025 00:19:09 +0000 Subject: [PATCH] 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. --- .github/actions/setup-comfyui-server/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-comfyui-server/action.yml b/.github/actions/setup-comfyui-server/action.yml index bbef01e0b..e5c35955a 100644 --- a/.github/actions/setup-comfyui-server/action.yml +++ b/.github/actions/setup-comfyui-server/action.yml @@ -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