Skip to content

Commit 42fd21f

Browse files
committed
deploy latest if no release is specified
1 parent afbbf46 commit 42fd21f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/deploy-ccws-callable.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ on:
3939
default: "ccw"
4040
type: string
4141
workspace_ref:
42-
description: "Git ref (branch/tag) to checkout"
42+
description: "Git ref (branch/tag) to checkout (defaults to latest release)"
4343
required: false
44-
default: "2025.12.01"
4544
type: string
4645
htc_max_nodes:
4746
description: "Maximum nodes for HTC partition"
@@ -193,13 +192,16 @@ jobs:
193192
--scheduler-sku "$SCHEDULER_SKU"
194193
--login-sku "$LOGIN_SKU"
195194
--cluster-name "$CLUSTER_NAME"
196-
--workspace-ref "$WORKSPACE_REF"
197195
--htc-max-nodes "$HTC_MAX"
198196
--hpc-max-nodes "$HPC_MAX"
199197
--gpu-max-nodes "$GPU_MAX"
200198
--bastion --accept-marketplace --no-az --silent
201199
)
202200
201+
if [ -n "${WORKSPACE_REF}" ]; then
202+
cmd+=(--workspace-ref "$WORKSPACE_REF")
203+
fi
204+
203205
if [ -n "${IMAGE}" ]; then
204206
cmd+=(--htc-image "$IMAGE")
205207
cmd+=(--hpc-image "$IMAGE")
@@ -247,12 +249,14 @@ jobs:
247249
--admin-username "hpcadmin"
248250
--scheduler-sku "${{ inputs.scheduler_sku }}"
249251
--login-sku "${{ inputs.login_sku }}"
250-
--workspace-ref "${{ inputs.workspace_ref }}"
251252
--htc-max-nodes "${{ inputs.htc_max_nodes }}"
252253
--hpc-max-nodes "${{ inputs.hpc_max_nodes }}"
253254
--gpu-max-nodes "${{ inputs.gpu_max_nodes }}"
254255
--bastion --accept-marketplace --no-az --silent
255256
)
257+
if [ -n "${{ inputs.workspace_ref }}" ]; then
258+
args+=(--workspace-ref "${{ inputs.workspace_ref }}")
259+
fi
256260
if [ -n "${{ inputs.image }}" ]; then
257261
args+=(--htc-image "${{ inputs.image }}")
258262
args+=(--hpc-image "${{ inputs.image }}")

0 commit comments

Comments
 (0)