From 24bd3bc7b28db579744a5c796a3c90c66a5d7aaf Mon Sep 17 00:00:00 2001 From: seymourimadeit <55965249+seymourimadeit@users.noreply.github.com> Date: Sat, 25 Jan 2025 23:05:41 -0800 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f578118..e7a1222 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,13 +10,11 @@ jobs: with: fetch-depth: 1000 fetch-tags: true - - name: Setup JDK 21 uses: actions/setup-java@v2 with: java-version: '21' distribution: 'temurin' - - name: Build with Gradle uses: gradle/actions/setup-gradle@v3 with: @@ -43,3 +41,30 @@ jobs: java: 21 name: "" changelog-file: changelog-1.21.* + - name: Nuke Changelog dot txt + uses: DamianReeves/write-file-action@master + with: + path: changelog-1.21.txt + write-mode: overwrite + contents: | + CHANGELOG: + - name: Increment version variable + id: bump_version + uses: christian-draeger/increment-semantic-version@1.2.3 + with: + current-version: ${{ steps.version.outputs.value }} + version-fragment: 'hotfix' + - name: Write value to Properties-file + uses: anbazhagan45/update-property-value@1.0.1 + with: + source_path: 'gradle.properties' + properties: | + mod_version + values: | + ${{ steps.bump_version.outputs.next-version }} + - name: Commit & Push + uses: Andro999b/push@v1.3 + with: + github_token: ${{ secrets.GIT_TOKEN}} + branch: ${{ github.ref }} + force: true