forked from Hithomelabs/CFTunnels
Checking if cut is installed on gitea runner
This commit is contained in:
parent
005863c998
commit
3bf981ac05
@ -20,12 +20,14 @@ jobs:
|
|||||||
java-version: '17'
|
java-version: '17'
|
||||||
- name: Validate Gradle Wrapper
|
- name: Validate Gradle Wrapper
|
||||||
uses: gradle/actions/wrapper-validation@v3
|
uses: gradle/actions/wrapper-validation@v3
|
||||||
|
- name: Check if cut is installed
|
||||||
|
run: echo $(which cut)
|
||||||
- name: Get latest tag
|
- name: Get latest tag
|
||||||
run: |
|
run: |
|
||||||
echo "VERSION=$(git describe --tags --abbrev=0)"
|
echo "VERSION=$(git describe --tags --abbrev=0)"
|
||||||
MAJOR=$(echo $VERSION | cut -d "." -f 1)
|
echo "MAJOR=$(echo $VERSION | cut -d "." -f 1)"
|
||||||
MINOR=$(echo $VERSION | cut -d "." -f 2)
|
echo "MINOR=$(echo $VERSION | cut -d "." -f 2)"
|
||||||
PATCH=$(echo $VERSION | cut -d "." -f 3)
|
echo "PATCH=$(echo $VERSION | cut -d "." -f 3)"
|
||||||
- name: Increment version
|
- name: Increment version
|
||||||
run: |
|
run: |
|
||||||
PATCH=$((PATCH + 1))
|
PATCH=$((PATCH + 1))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user