diff --git a/.gitea/workflows/test_build.yml b/.gitea/workflows/test_build.yml index 85e9353..ae070cd 100644 --- a/.gitea/workflows/test_build.yml +++ b/.gitea/workflows/test_build.yml @@ -16,12 +16,5 @@ jobs: java-version: '17' - name: Validate Gradle Wrapper uses: gradle/actions/wrapper-validation@v3 - - name: Get latest tag dry run - run: | - echo "VERSION=$(git describe --tags --abbrev=0)" - echo $VERSION - 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: Gradle build run: ./gradlew build --info \ No newline at end of file diff --git a/.gitea/workflows/test_image_build_push.yml b/.gitea/workflows/test_image_build_push.yml index 3feddd2..c6f314b 100644 --- a/.gitea/workflows/test_image_build_push.yml +++ b/.gitea/workflows/test_image_build_push.yml @@ -26,8 +26,8 @@ jobs: run: | echo "VERSION=$(git describe --tags --abbrev=0)" echo $VERSION - echo "MAJOR=$(echo $VERSION | cut -d "." -f 1)" - echo "MINOR=$(echo $VERSION | cut -d "." -f 2)" + echo "MAJOR=$(echo $VERSION | /usr/bin/cut -d "." -f 1)" + sudo echo "MINOR=$(echo $VERSION | cut -d "." -f 2)" echo "PATCH=$(echo $VERSION | cut -d "." -f 3)" - name: Increment version run: |