mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 16:25:49 +00:00
feat: blah
This commit is contained in:
parent
38457a2d2a
commit
c96b223182
1 changed files with 5 additions and 4 deletions
9
.github/workflows/docker-publish.yml
vendored
9
.github/workflows/docker-publish.yml
vendored
|
@ -24,7 +24,8 @@ jobs:
|
|||
set -x
|
||||
function bump_version {
|
||||
# Split the version string into Major, Minor and Patch numbers
|
||||
local VERSION=(${1//"v"})
|
||||
local VERSION
|
||||
IFS='.' read -r -a VERSION <<< $(echo ${1//"v"})
|
||||
local BRANCH_NAME="$2"
|
||||
local MAJOR=${VERSION[0]}
|
||||
local MINOR=${VERSION[1]}
|
||||
|
@ -41,7 +42,7 @@ jobs:
|
|||
fi
|
||||
|
||||
# Build the new version string
|
||||
NEXT_VERSION="v${MAJOR}.${MINOR}.${PATCH}${rc}"
|
||||
echo "v${MAJOR}.${MINOR}.${PATCH}${rc}"
|
||||
}
|
||||
|
||||
CURRENT_BRANCH=$(git symbolic-ref -q HEAD)
|
||||
|
@ -77,8 +78,8 @@ jobs:
|
|||
fi
|
||||
fi
|
||||
|
||||
echo "::set-output name=current_version::${CURRENT_VERSION}"
|
||||
echo "::set-output name=next_version::${NEXT_VERSION}"
|
||||
echo "current_version=${CURRENT_VERSION}" >> $GITHUB_OUTPUT
|
||||
echo "next_version=${NEXT_VERSION}" >> $GITHUB_OUTPUT
|
||||
|
||||
#- uses: docker://ghcr.io/codfish/semantic-release-action@sha256:4675eae74abbabc869298ca798833fef291ce30fb9edfac76787746e7d9d3904
|
||||
# id: semantic
|
||||
|
|
Loading…
Reference in a new issue