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'
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/actions/wrapper-validation@v3
|
||||
- name: Check if cut is installed
|
||||
run: echo $(which cut)
|
||||
- name: Get latest tag
|
||||
run: |
|
||||
echo "VERSION=$(git describe --tags --abbrev=0)"
|
||||
MAJOR=$(echo $VERSION | cut -d "." -f 1)
|
||||
MINOR=$(echo $VERSION | cut -d "." -f 2)
|
||||
PATCH=$(echo $VERSION | cut -d "." -f 3)
|
||||
echo "MAJOR=$(echo $VERSION | cut -d "." -f 1)"
|
||||
echo "MINOR=$(echo $VERSION | cut -d "." -f 2)"
|
||||
echo "PATCH=$(echo $VERSION | cut -d "." -f 3)"
|
||||
- name: Increment version
|
||||
run: |
|
||||
PATCH=$((PATCH + 1))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user