From 3a7925a59a1ffabaff831e78798f548e192eba62 Mon Sep 17 00:00:00 2001 From: seymourimadeit Date: Sun, 2 Feb 2025 19:56:03 -0800 Subject: [PATCH] [MAJOR] test --- .github/workflows/add-to-changelog.yaml | 4 +++- .github/workflows/bump-to-major-or-minor.yaml | 2 +- gradle.properties | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/add-to-changelog.yaml b/.github/workflows/add-to-changelog.yaml index 0c534ac..b16e0cf 100644 --- a/.github/workflows/add-to-changelog.yaml +++ b/.github/workflows/add-to-changelog.yaml @@ -3,6 +3,9 @@ on: [push] jobs: add-to-changelog: runs-on: ubuntu-latest + if: | + contains(github.event.head_commit.message, '[CHANGE]') || + contains(github.event.head_commit.message, '[MAJOR]') steps: - name: Checkout repo uses: actions/checkout@v4 @@ -10,7 +13,6 @@ jobs: fetch-depth: 1000 fetch-tags: true - name: Append changelog file - if: contains(github.event.head_commit.message, fromJSON('["[MAJOR]", "[CHANGE]"]')) uses: DamianReeves/write-file-action@master with: path: changelog-1.21.txt diff --git a/.github/workflows/bump-to-major-or-minor.yaml b/.github/workflows/bump-to-major-or-minor.yaml index 7327001..fd09ea2 100644 --- a/.github/workflows/bump-to-major-or-minor.yaml +++ b/.github/workflows/bump-to-major-or-minor.yaml @@ -4,6 +4,7 @@ on: [push] jobs: bump-to-major-or-minor: runs-on: ubuntu-latest + if: contains(github.event.head_commit.message, '[MAJOR]') steps: - name: Checkout repository uses: actions/checkout@v4 @@ -17,7 +18,6 @@ jobs: property: mod_version - name: Increment version variable id: bump_version - if: contains(github.event.head_commit.message, '[MAJOR]') uses: christian-draeger/increment-semantic-version@1.2.3 with: current-version: ${{ steps.version.outputs.value }} diff --git a/gradle.properties b/gradle.properties index 0079a67..de5fb9c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -35,7 +35,7 @@ mod_name=Guard Villagers # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=MIT for code, assets are ARR # The mod version. See https://semver.org/ -mod_version= +mod_version=2.3.0 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html