mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
Backport of #9718 to core/1.41 Co-authored-by: Hunter <huntcsg@users.noreply.github.com>
This commit is contained in:
4
.github/workflows/cloud-dispatch-build.yaml
vendored
4
.github/workflows/cloud-dispatch-build.yaml
vendored
@@ -43,6 +43,10 @@ jobs:
|
||||
if [ "${EVENT_NAME}" = "pull_request" ]; then
|
||||
REF="${PR_HEAD_SHA}"
|
||||
BRANCH="${PR_HEAD_REF}"
|
||||
|
||||
# Derive variant from all PR labels (default to cpu for frontend-only previews)
|
||||
VARIANT="cpu"
|
||||
echo "${PR_LABELS}" | grep -q '"preview-gpu"' && VARIANT="gpu"
|
||||
else
|
||||
REF="${GITHUB_SHA}"
|
||||
BRANCH="${GITHUB_REF_NAME}"
|
||||
|
||||
Reference in New Issue
Block a user