From 42fd21fde48ab8cc1e165af21770c837c00d8bd0 Mon Sep 17 00:00:00 2001 From: "Xavier Pillons (MSFT)" Date: Tue, 24 Feb 2026 09:34:24 +0100 Subject: [PATCH] deploy latest if no release is specified --- .github/workflows/deploy-ccws-callable.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-ccws-callable.yml b/.github/workflows/deploy-ccws-callable.yml index 8a6ca89..cc26f02 100644 --- a/.github/workflows/deploy-ccws-callable.yml +++ b/.github/workflows/deploy-ccws-callable.yml @@ -39,9 +39,8 @@ on: default: "ccw" type: string workspace_ref: - description: "Git ref (branch/tag) to checkout" + description: "Git ref (branch/tag) to checkout (defaults to latest release)" required: false - default: "2025.12.01" type: string htc_max_nodes: description: "Maximum nodes for HTC partition" @@ -193,13 +192,16 @@ jobs: --scheduler-sku "$SCHEDULER_SKU" --login-sku "$LOGIN_SKU" --cluster-name "$CLUSTER_NAME" - --workspace-ref "$WORKSPACE_REF" --htc-max-nodes "$HTC_MAX" --hpc-max-nodes "$HPC_MAX" --gpu-max-nodes "$GPU_MAX" --bastion --accept-marketplace --no-az --silent ) + if [ -n "${WORKSPACE_REF}" ]; then + cmd+=(--workspace-ref "$WORKSPACE_REF") + fi + if [ -n "${IMAGE}" ]; then cmd+=(--htc-image "$IMAGE") cmd+=(--hpc-image "$IMAGE") @@ -247,12 +249,14 @@ jobs: --admin-username "hpcadmin" --scheduler-sku "${{ inputs.scheduler_sku }}" --login-sku "${{ inputs.login_sku }}" - --workspace-ref "${{ inputs.workspace_ref }}" --htc-max-nodes "${{ inputs.htc_max_nodes }}" --hpc-max-nodes "${{ inputs.hpc_max_nodes }}" --gpu-max-nodes "${{ inputs.gpu_max_nodes }}" --bastion --accept-marketplace --no-az --silent ) + if [ -n "${{ inputs.workspace_ref }}" ]; then + args+=(--workspace-ref "${{ inputs.workspace_ref }}") + fi if [ -n "${{ inputs.image }}" ]; then args+=(--htc-image "${{ inputs.image }}") args+=(--hpc-image "${{ inputs.image }}")