From c1cddcc5facbfb1bbabfb37ace8302f2ec07fc70 Mon Sep 17 00:00:00 2001 From: tkt <37575408+tktcorporation@users.noreply.github.com> Date: Mon, 10 Apr 2023 13:22:06 +0000 Subject: [PATCH] :bug: fix bump-update-release.yml --- .github/workflows/bump-update-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump-update-release.yml b/.github/workflows/bump-update-release.yml index 6f0a9fe..1cabe43 100644 --- a/.github/workflows/bump-update-release.yml +++ b/.github/workflows/bump-update-release.yml @@ -40,7 +40,7 @@ jobs: - name: Create branch, commit and push run: | - VERSION=$(grep '^version =' Cargo.toml | awk -F' = ' '{print $2}' | tr -d '"') + VERSION=$(grep -oP '(?<=version = ")[^"]*' Cargo.toml | head -1) BRANCH_NAME="release/v$VERSION" git switch -c $BRANCH_NAME git add .