Correcting syntax #53
@ -9,21 +9,22 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
new_version: ${{ steps.new_version.outputs.new_version }}
|
new_version: ${{ steps.new_version.outputs.new_version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
id: new_version
|
- name: Get new version
|
||||||
run: |
|
id: new_version
|
||||||
VERSION=$(git describe --tags --abbrev=0)
|
run: |
|
||||||
echo ${VERSION}
|
VERSION=$(git describe --tags --abbrev=0)
|
||||||
MAJOR=$(echo ${VERSION} | cut -d "." -f 1)
|
echo ${VERSION}
|
||||||
MINOR=$(echo ${VERSION} | cut -d "." -f 2)
|
MAJOR=$(echo ${VERSION} | cut -d "." -f 1)
|
||||||
PATCH=$(echo ${VERSION} | cut -d "." -f 3)
|
MINOR=$(echo ${VERSION} | cut -d "." -f 2)
|
||||||
NEW_PATCH=$(( ${PATCH} + 1))
|
PATCH=$(echo ${VERSION} | cut -d "." -f 3)
|
||||||
echo ${NEW_PATCH}
|
NEW_PATCH=$(( ${PATCH} + 1))
|
||||||
echo "new_version=$($MAJOR.$MINOR.$NEW_PATCH)" >> $GITHUB_OUTPUT
|
echo ${NEW_PATCH}
|
||||||
echo ${new_version}
|
echo "new_version=$($MAJOR.$MINOR.$NEW_PATCH)" >> $GITHUB_OUTPUT
|
||||||
|
echo ${new_version}
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: tag
|
needs: tag
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user