Skip to content

Commit

Permalink
v0.1.2 (#0)
Browse files Browse the repository at this point in the history
parse package version
  • Loading branch information
nmanu1 committed Oct 27, 2023
1 parent 5c90bce commit 7aeec4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7aeec4e

Please sign in to comment.