From 9f30dddae554531a23cca0b6b3742c48e8380ee6 Mon Sep 17 00:00:00 2001 From: soimugeoWB <149394944+soimugeoWB@users.noreply.github.com> Date: Fri, 21 Jun 2024 10:49:20 +0300 Subject: [PATCH 1/2] added commit action to release.yaml (#17) Co-authored-by: Gheorghe Soimu --- .github/workflows/release.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 96aa7d5..dbfeb05 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -60,6 +60,15 @@ jobs: echo "New version: $new_version" mvn versions:set -DnewVersion=$new_version -DgenerateBackupPoms=false echo "::set-output name=new_version::$new_version" + - name: Commit new version + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git add pom.xml + git commit -m "Bump version to ${{ steps.bump.outputs.new_version }}" + git tag ${{ steps.bump.outputs.new_version }} + git push origin HEAD:${GITHUB_REF##*/} + git push origin ${{ steps.bump.outputs.new_version }} - name: Build with Maven run: mvn --batch-mode -Prelease deploy - name: Release From b194b7279eae6f71472e1dac1903e4019be1a6af Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 21 Jun 2024 07:49:49 +0000 Subject: [PATCH 2/2] Bump version to 1.0.24-WHO --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 23b9eee..62b9763 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ edu.stanford.protege webprotege-backend-api - 1.0.23-WHO + 1.0.24-WHO UTF-8