From 4e7aa606d2b8eee52d3451fa104ad5f1b1153d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <andre_miguel_costa@hotmail.com> Date: Fri, 6 Sep 2024 23:43:11 +0200 Subject: [PATCH] ci: fix version check in release job --- .github/workflows/tag-release-and-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tag-release-and-publish.yml b/.github/workflows/tag-release-and-publish.yml index 3498277..098131b 100644 --- a/.github/workflows/tag-release-and-publish.yml +++ b/.github/workflows/tag-release-and-publish.yml @@ -51,7 +51,7 @@ jobs: - name: Get the current version id: get_version run: | - VERSION=$(cat Cargo.toml | grep version | grep -o -P "\d+\.\d+\.\d+") + VERSION=v$(cat Cargo.toml | grep -m 1 version | grep -o -P "\d+\.\d+\.\d+") echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Get Changelog line