From 7aeec4ed885ca3d181beadc6e74ddfea10efe7a1 Mon Sep 17 00:00:00 2001 From: nmanu1 Date: Fri, 27 Oct 2023 17:06:46 -0400 Subject: [PATCH] v0.1.2 (#0) parse package version --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index acb7bbe8f..9b5b8ef55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,10 @@ jobs: if [[ $COMMIT_TITLE =~ ^(v|Version )[0-9]+\.[0-9]+\.[0-9]+( \(#[0-9]+\))?$ ]] then echo "matched regex" + PACKAGE_VERSION="${COMMIT_TITLE#Version }" + PACKAGE_VERSION="${PACKAGE_VERSION#v}" + PACKAGE_VERSION="${PACKAGE_VERSION%% }" + echo "${PACKAGE_VERSION}" else echo "did not match" fi