work on updating publish workflow
All checks were successful
Build container images / build (push) Successful in 1m51s
All checks were successful
Build container images / build (push) Successful in 1m51s
This commit is contained in:
parent
57c95acdf8
commit
861eae05f7
@ -38,8 +38,9 @@ jobs:
|
||||
version_str: ${{ inputs.version }}
|
||||
run: |
|
||||
if egrep '^[0-9]+\.[0-9]+\.[0-9]+$' <<<"$version_str" >/dev/null 2>&1 ; then
|
||||
local n=${version_str//[!0-9]/ }
|
||||
local a=(${n//\./ })
|
||||
n=${version_str//[!0-9]/ }
|
||||
a=(${n//\./ })
|
||||
|
||||
echo "major=${a[0]}" >> $GITHUB_OUTPUT
|
||||
echo "minor=${a[1]}" >> $GITHUB_OUTPUT
|
||||
echo "patch=${a[2]}" >> $GITHUB_OUTPUT
|
||||
|
Loading…
x
Reference in New Issue
Block a user