First major release #68
@ -18,22 +18,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
- name: Check if cut is installed
|
|
||||||
run: echo $(which cut)
|
|
||||||
- name: Get latest tag
|
- name: Get latest tag
|
||||||
|
id: get_tag
|
||||||
run: |
|
run: |
|
||||||
export "VERSION=$(git describe --tags --abbrev=0)"
|
export "VERSION=$(git describe --tags --abbrev=0)"
|
||||||
echo "${VERSION}"
|
echo "${VERSION}"
|
||||||
export "MAJOR=$(echo ${VERSION} | /usr/bin/cut -d "." -f 1)"
|
export "MAJOR=$(echo ${VERSION} | /usr/bin/cut -d "." -f 1)"
|
||||||
echo "${MAJOR}"
|
echo "MAJOR=${MAJOR}"
|
||||||
export "MINOR=$(echo ${VERSION} | cut -d "." -f 2)"
|
export "MINOR=$(echo ${VERSION} | cut -d "." -f 2)"
|
||||||
echo "${MINOR}"
|
echo "MINOR=${MINOR}"
|
||||||
export "PATCH=$(echo ${VERSION} | cut -d "." -f 3)"
|
export "PATCH=$(echo ${VERSION} | cut -d "." -f 3)"
|
||||||
echo "${PATCH}"
|
echo "PATCH=${PATCH}"
|
||||||
- name: Increment version
|
- name: Increment version
|
||||||
run: |
|
run: |
|
||||||
PATCH=$((PATCH + 1))
|
export "NEW_VERSION=$(echo ${{ steps.get_tag.outputs.MAJOR }}.${{ steps.get_tag.outputs.MINOR }}.$( ${{ steps.get_tag.outputs.PATCH }} + 1) )
|
||||||
echo "NEW_VERSION=$(echo $MAJOR.$MINOR.$PATCH)"
|
echo "NEW_VERSION=${NEW_VERSION}"
|
||||||
- name: Extract commit message
|
- name: Extract commit message
|
||||||
run: echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)"
|
run: echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)"
|
||||||
- name: Create and push tag
|
- name: Create and push tag
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user