From 3ba1b3fc61a38622bce4319ea91f1868bb666227 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Thu, 29 Jun 2023 00:26:48 +0800 Subject: [PATCH] ci: fix tag version --- .github/workflows/release-desktop-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-desktop-app.yml b/.github/workflows/release-desktop-app.yml index 843c6fa530..3f12d9a5b9 100644 --- a/.github/workflows/release-desktop-app.yml +++ b/.github/workflows/release-desktop-app.yml @@ -51,7 +51,7 @@ jobs: id: get-canary-version if: ${{ github.ref_type == 'tag' }} run: | - TAG_VERSION=${GITHUB_REF#refs/tags/} + TAG_VERSION=${GITHUB_REF#refs/tags/v} PACKAGE_VERSION=$(node -p "require('./package.json').version") if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then echo "Tag version ($TAG_VERSION) does not match package.json version ($PACKAGE_VERSION)"