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

View File

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