Skip to content

Commit a7d288d

Browse files
[release] [minor] fix release action
1 parent ba169bb commit a7d288d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/release.yml

+3-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
workflows: [CI]
1313
types: [completed]
1414
branches: [main]
15-
15+
1616
jobs:
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
@@ -47,7 +44,6 @@ jobs:
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
@@ -66,6 +62,7 @@ jobs:
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))

0 commit comments

Comments
 (0)