From d92f200f05ba99ce1e39527f81b816680781409d Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 29 Apr 2023 07:34:01 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7b419d3..d3293b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -71,14 +71,26 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} with: - xtag: "v1.99" - title: "v$((${{ secrets.MAJOR }})).$((${{ secrets.MINOR }}))" - xbody: "Release v1.99" + xtag: "v1.98" + title: "v${{ secrets.MAJOR }}.${{ secrets.MINOR }}" + xbody: "Release v1.98" bump: needs: release runs-on: ubuntu-latest steps: + - + name: Autoincrement minor version + run: | + echo "NEW_MINOR_VERSION=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV + - + name: Update minor version + uses: hmanzur/actions-set-secret@v2.0.0 + with: + name: 'MINOR' + value: ${{ env.NEW_MINOR_VERSION }} + repository: ${{ github.repository }} + token: ${{ secrets.REPO_ACCESS_TOKEN }} - name: Update minor version uses: hmanzur/actions-set-secret@v2.0.0