From d95f539d4050812089e8725d57f0e6cfc76e84f4 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Wed, 13 Sep 2023 12:40:01 +0200 Subject: [PATCH] fix grepping version in Cargo.toml Signed-off-by: Chmouel Boudjnah --- .github/workflows/releaser.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/releaser.yaml b/.github/workflows/releaser.yaml index 711206e..ad5bbac 100644 --- a/.github/workflows/releaser.yaml +++ b/.github/workflows/releaser.yaml @@ -29,9 +29,8 @@ jobs: run: git fetch --force --tags - name: Check that the Cargo.yaml has been updated with tag run: | - if ! grep -q "version: ${GITHUB_REF#refs/tags/}" Cargo.toml; then + if ! grep -E "version[ ]*=[ ]*.${GITHUB_REF#refs/tags/}." Cargo.toml; then echo "Cargo.toml version does not match tag, version in current Cargo.toml:" - grep 'version: ' Cargo.toml |sed 's/.*: //' exit 1 fi - uses: actions-rs/toolchain@v1