From 3015b11b5e311bc9977928af14b99fd42f68cd02 Mon Sep 17 00:00:00 2001 From: grog Date: Thu, 12 Oct 2023 20:54:50 -0700 Subject: [PATCH] again --- .github/workflows/build.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbdc3a0eb2..a9eb1341f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,15 +25,21 @@ jobs: - name: Package with Maven run: mvn package -DskipTests - - name: Determine Next Version - id: next_version - run: | - current_version=$(cat version.txt) - major_minor="1.1." - increment_version=$((current_version + 1)) - next_version="${major_minor}${increment_version}" - echo "$next_version" > version.txt - echo "next_version=${next_version}" >> $GITHUB_OUTPUT + # - name: Determine Next Version + # id: next_version + # run: | + # current_version=$(cat version.txt) + # major_minor="1.1." + # increment_version=$((current_version + 1)) + # next_version="${major_minor}${increment_version}" + # echo "$next_version" > version.txt + # echo "next_version=${next_version}" >> $GITHUB_OUTPUT + - name: Get next version + uses: reecetech/version-increment@2023.9.3 + id: version + with: + scheme: semver + increment: patch - name: Create Release id: create_release @@ -41,8 +47,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ steps.next_version.outputs.next_version }} - release_name: Release ${{ steps.next_version.outputs.next_version }} + tag_name: ${{ steps.next_version.outputs.version }} + release_name: Release ${{ steps.next_version.outputs.version }} draft: false prerelease: false