From 3988fc99ad75a7e1d630d34ffdb2e85984457539 Mon Sep 17 00:00:00 2001 From: Pat Garrity Date: Sat, 23 Mar 2024 02:42:58 +0000 Subject: [PATCH] (patch) Fixing the automated builds. (#5) --- .forgejo/workflows/pull_request.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.forgejo/workflows/pull_request.yaml b/.forgejo/workflows/pull_request.yaml index 084102b..32d54a4 100644 --- a/.forgejo/workflows/pull_request.yaml +++ b/.forgejo/workflows/pull_request.yaml @@ -20,6 +20,22 @@ 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 ($GS_RELEASE_TYPE)" sbtn clean sbtn coverage sbtn test