From d37a465382a863ab60dffffe12a58839f2f235bd Mon Sep 17 00:00:00 2001 From: Siddharth Venkatesan Date: Mon, 23 Dec 2024 14:39:15 -0700 Subject: [PATCH] [fix][ci] default to nightly when mode is not specified via cron trigger (#2646) --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index e36cc8201..18b4d13b2 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -41,7 +41,7 @@ jobs: - name: get_image_tag_suffix id: get_image_tag_suffix run: | - if [[ "${{ inputs.mode }}" == "nightly" ]]; then + if [[ "${{ inputs.mode || 'nightly' }}" == "nightly" ]]; then echo "test_image_tag_suffix=nightly" >> $GITHUB_OUTPUT elif [[ "${{ inputs.mode }}" == "release" ]]; then echo "test_image_tag_suffix=${{ needs.build.outputs.djl_version }}-${GITHUB_RUN_ID}" >> $GITHUB_OUTPUT