From cc3ca9c317dd1959d5af4a570992ad4abbcbe276 Mon Sep 17 00:00:00 2001 From: Jonas <99104369+phoenixr-codes@users.noreply.github.com> Date: Mon, 20 May 2024 22:29:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Fix=20"v"=20prefix=20stuff=20(ag?= =?UTF-8?q?ain)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b56f9b9..81e4a7e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,14 +21,14 @@ jobs: - uses: actions/checkout@v4 - name: Get the release version from the tag if: env.VERSION == '' - run: echo "VERSION=v${{ github.ref_name }}" >> $GITHUB_ENV + run: echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV - name: Show the version run: | echo "version is: $VERSION" - name: Check that tag version and Cargo.toml version are the same shell: bash run: | - if ! grep -q "version = \"$VERSION\"" Cargo.toml; then + if ! grep -q "version = \"${VERSION#v}\"" Cargo.toml; then echo "version does not match Cargo.toml" >&2 exit 1 fi