Checking if cut is installed on gitea runner #28

Merged
hitanshu merged 1 commits from hitanshu/CFTunnels:tags into test 2025-06-05 16:51:36 +00:00
Showing only changes of commit 3bf981ac05 - Show all commits

View File

@ -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))