From 712b0484f56ac5c997742ee8122bfd75665f282a Mon Sep 17 00:00:00 2001 From: Pat Garrity Date: Wed, 20 Mar 2024 22:36:23 -0500 Subject: [PATCH 1/2] (patch) Fixing the automated builds. --- .forgejo/workflows/pull_request.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.forgejo/workflows/pull_request.yaml b/.forgejo/workflows/pull_request.yaml index 084102b..cc3c9b1 100644 --- a/.forgejo/workflows/pull_request.yaml +++ b/.forgejo/workflows/pull_request.yaml @@ -20,6 +20,23 @@ jobs: pre-commit run --all-files - name: 'Unit Tests and Code Coverage' run: | + latest_commit_message="$(git show -s --format=%s HEAD)" + case "$latest_commit_message" in + *patch*) + export GS_RELEASE_TYPE="patch" + ;; + *minor*) + export GS_RELEASE_TYPE="minor" + ;; + *major*) + export GS_RELEASE_TYPE="major" + ;; + *) + export GS_RELEASE_TYPE="patch" + ;; + esac + echo "Latest Commit: $latest_commit_message" + echo "Selected Release Type: '$GS_RELEASE_TYPE'" sbtn clean sbtn coverage sbtn test -- 2.43.0 From 9b8b8506df2fe74264378d19558722ecdef37a81 Mon Sep 17 00:00:00 2001 From: Pat Garrity Date: Fri, 22 Mar 2024 21:12:20 -0500 Subject: [PATCH 2/2] Last commit to finish verifying and clean up. --- .forgejo/workflows/pull_request.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.forgejo/workflows/pull_request.yaml b/.forgejo/workflows/pull_request.yaml index cc3c9b1..32d54a4 100644 --- a/.forgejo/workflows/pull_request.yaml +++ b/.forgejo/workflows/pull_request.yaml @@ -35,8 +35,7 @@ jobs: export GS_RELEASE_TYPE="patch" ;; esac - echo "Latest Commit: $latest_commit_message" - echo "Selected Release Type: '$GS_RELEASE_TYPE'" + echo "Latest Commit: $latest_commit_message ($GS_RELEASE_TYPE)" sbtn clean sbtn coverage sbtn test -- 2.43.0