From 7a9664f4c6cdb0d7c293bccf991a12cd8f2216e0 Mon Sep 17 00:00:00 2001 From: Bluemangoo Date: Tue, 30 Apr 2024 09:49:02 +0800 Subject: [PATCH] [Release]Update release.yml --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 30b4753..146539e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,11 +14,10 @@ jobs: if: "contains(github.event.commits[0].message, '[Release]')" steps: - uses: actions/checkout@v4 - - name: Get version - run: version=$(grep -m 1 version Cargo.toml | tr -s ' ' | tr -d '"' | tr -d "'") - name: Check git tag run: | - git rev-parse ${{ env.version }} || exit 0 + version=$(grep -m 1 version Cargo.toml | tr -s ' ' | tr -d '"' | tr -d "'") + git rev-parse $version || exit 0 exit 1 build: runs-on: ${{ matrix.host_os }}