From 6518dda504c0e13e923aa9861cf988f9e38001c0 Mon Sep 17 00:00:00 2001 From: elseif Date: Tue, 18 Feb 2025 15:42:28 +0800 Subject: [PATCH] Update mikrotik_patch_7.yml Signed-off-by: elseif --- .github/workflows/mikrotik_patch_7.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/mikrotik_patch_7.yml b/.github/workflows/mikrotik_patch_7.yml index 224941b..83cb2ea 100644 --- a/.github/workflows/mikrotik_patch_7.yml +++ b/.github/workflows/mikrotik_patch_7.yml @@ -23,9 +23,9 @@ on: - stable - testing version: - description: 'Version (latest, 7.17, 7.17.1, 7.17.2,...)' + description: "Version ('', 7.17, 7.17.1, 7.17.2,...)" required: false - default: 'latest' + default: '' type: string permissions: contents: write @@ -82,8 +82,8 @@ jobs: id: get_latest run: | echo $(uname -a) - LATEST_VERSION=${{ github.event.inputs.version || "latest" }} - if [$LATEST_VERSION == "latest"];then + LATEST_VERSION=${{ github.event.inputs.version }} + if [$LATEST_VERSION == ""];then LATEST_VERSION=$(wget -nv -O - https://${{ env.MIKRO_UPGRADE_URL }}/routeros/NEWESTa7.${{ matrix.channel }} | cut -d ' ' -f1) fi echo Latest Version:$LATEST_VERSION