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