From 1688859a4150d06e3be91fc9b531a226d799e593 Mon Sep 17 00:00:00 2001 From: Sion Kang Date: Wed, 2 Oct 2024 17:45:22 +0900 Subject: [PATCH] ci: Make sure the first half of the tag is the same as the latest release --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07a6171a0b..d137a597f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -535,7 +535,7 @@ jobs: release_version=$(git branch -r | grep -E 'origin/[0-9]{2}\.[0-9]{2}$' | awk -F'/' '{print $2}' | sort -V | tail -n 1) echo "RELEASE_VERSION=$release_version" >> $GITHUB_OUTPUT - name: Update edge installer shorten URL - if: ${{ github.ref_name == steps.extract_edge_release_version.outputs.RELEASE_VERSION }} + if: ${{ startsWith(github.ref_name, steps.extract_edge_release_version.outputs.RELEASE_VERSION) }} run: | curl -X 'PATCH' \ 'https://bnd.ai/rest/v3/short-urls/installer-edge-macos-aarch64' \