work on updating publish workflow
All checks were successful
Build container images / build (push) Successful in 1m51s

This commit is contained in:
James Brumond 2025-04-19 20:46:38 -07:00
parent 57c95acdf8
commit 861eae05f7
Signed by: james
GPG Key ID: 54075022DEA90D75

View File

@ -38,8 +38,9 @@ jobs:
version_str: ${{ inputs.version }} version_str: ${{ inputs.version }}
run: | run: |
if egrep '^[0-9]+\.[0-9]+\.[0-9]+$' <<<"$version_str" >/dev/null 2>&1 ; then if egrep '^[0-9]+\.[0-9]+\.[0-9]+$' <<<"$version_str" >/dev/null 2>&1 ; then
local n=${version_str//[!0-9]/ } n=${version_str//[!0-9]/ }
local a=(${n//\./ }) a=(${n//\./ })
echo "major=${a[0]}" >> $GITHUB_OUTPUT echo "major=${a[0]}" >> $GITHUB_OUTPUT
echo "minor=${a[1]}" >> $GITHUB_OUTPUT echo "minor=${a[1]}" >> $GITHUB_OUTPUT
echo "patch=${a[2]}" >> $GITHUB_OUTPUT echo "patch=${a[2]}" >> $GITHUB_OUTPUT