Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
seymourimadeit authored Jan 26, 2025
1 parent 0de55bb commit 24bd3bc
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 24bd3bc

Please sign in to comment.