1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
################################################################################
## Check Release Commit
##
## Checks if the current commit is a release commit by examining the commit
## message. Outputs results to GITHUB_OUTPUT for workflow control.
##
## Usage:
## ./check-release-commit
##
## Outputs (GITHUB_OUTPUT):
## is-release true if this is a release commit, false otherwise
## version The version being released (only if is-release=true)
##
## Exit Codes:
## 0 - Success (always, even if not a release commit)
################################################################################
# Source CI utilities
# shellcheck source=scripts/ci/lib.sh
# Get the commit message
COMMIT_MSG=
# Check if it matches the release commit pattern
if ; then
VERSION=""
else
fi