File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 12
12
workflows : [CI]
13
13
types : [completed]
14
14
branches : [main]
15
-
15
+
16
16
jobs :
17
17
check_commit :
18
18
name : Check Commit
@@ -28,17 +28,14 @@ jobs:
28
28
id : check_msg
29
29
run : |
30
30
LATEST_COMMIT_MSG=$(git log -1 --pretty=%B | cat)
31
-
32
31
if [[ ${LATEST_COMMIT_MSG} == *"[release]"* ]]; then
33
32
echo "release message found - continuing with the release"
34
33
IS_RELEASE="true"
35
34
else
36
- echo "release message found - skipping..."
35
+ echo "no release message found - skipping..."
37
36
IS_RELEASE="false"
38
37
fi
39
-
40
38
echo "IS_RELEASE=${IS_RELEASE}" >> $GITHUB_OUTPUT
41
- echo "LATEST_COMMIT_MSG=\"${LATEST_COMMIT_MSG}\"" >> $GITHUB_OUTPUT
42
39
43
40
release :
44
41
name : Release
47
44
if : ${{ needs.check_commit.outputs.IS_RELEASE == 'true' }}
48
45
env :
49
46
IS_RELEASE : ${{ needs.check_commit.outputs.IS_RELEASE }}
50
- LATEST_COMMIT_MSG : ${{ needs.check_commit.outputs.LATEST_COMMIT_MSG }}
51
47
steps :
52
48
- name : Check out Git repository
53
49
uses : actions/checkout@v4
66
62
- name : Bump version
67
63
run : |
68
64
set -e
65
+ LATEST_COMMIT_MSG=$(git log -1 --pretty=%B | cat)
69
66
70
67
echo "Extract the latest tag version"
71
68
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
You can’t perform that action at this time.
0 commit comments