File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1212 workflows : [CI]
1313 types : [completed]
1414 branches : [main]
15-
15+
1616jobs :
1717 check_commit :
1818 name : Check Commit
@@ -28,17 +28,14 @@ jobs:
2828 id : check_msg
2929 run : |
3030 LATEST_COMMIT_MSG=$(git log -1 --pretty=%B | cat)
31-
3231 if [[ ${LATEST_COMMIT_MSG} == *"[release]"* ]]; then
3332 echo "release message found - continuing with the release"
3433 IS_RELEASE="true"
3534 else
36- echo "release message found - skipping..."
35+ echo "no release message found - skipping..."
3736 IS_RELEASE="false"
3837 fi
39-
4038 echo "IS_RELEASE=${IS_RELEASE}" >> $GITHUB_OUTPUT
41- echo "LATEST_COMMIT_MSG=\"${LATEST_COMMIT_MSG}\"" >> $GITHUB_OUTPUT
4239
4340 release :
4441 name : Release
4744 if : ${{ needs.check_commit.outputs.IS_RELEASE == 'true' }}
4845 env :
4946 IS_RELEASE : ${{ needs.check_commit.outputs.IS_RELEASE }}
50- LATEST_COMMIT_MSG : ${{ needs.check_commit.outputs.LATEST_COMMIT_MSG }}
5147 steps :
5248 - name : Check out Git repository
5349 uses : actions/checkout@v4
6662 - name : Bump version
6763 run : |
6864 set -e
65+ LATEST_COMMIT_MSG=$(git log -1 --pretty=%B | cat)
6966
7067 echo "Extract the latest tag version"
7168 LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
You can’t perform that action at this time.
0 commit comments