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