Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 560924e

Browse files
committedJul 15, 2024·
[release] [minor] fix release action
Co-authored by SockworkOrange
1 parent ba169bb commit 560924e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

‎.github/workflows/release.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ on:
1212
workflows: [CI]
1313
types: [completed]
1414
branches: [main]
15-
15+
push:
16+
branches: [ "small-fix-to-release" ]
17+
1618
jobs:
1719
check_commit:
1820
name: Check Commit
@@ -28,17 +30,14 @@ jobs:
2830
id: check_msg
2931
run: |
3032
LATEST_COMMIT_MSG=$(git log -1 --pretty=%B | cat)
31-
3233
if [[ ${LATEST_COMMIT_MSG} == *"[release]"* ]]; then
3334
echo "release message found - continuing with the release"
3435
IS_RELEASE="true"
3536
else
36-
echo "release message found - skipping..."
37+
echo "no release message found - skipping..."
3738
IS_RELEASE="false"
3839
fi
39-
4040
echo "IS_RELEASE=${IS_RELEASE}" >> $GITHUB_OUTPUT
41-
echo "LATEST_COMMIT_MSG=\"${LATEST_COMMIT_MSG}\"" >> $GITHUB_OUTPUT
4241
4342
release:
4443
name: Release
@@ -47,7 +46,6 @@ jobs:
4746
if: ${{ needs.check_commit.outputs.IS_RELEASE == 'true' }}
4847
env:
4948
IS_RELEASE: ${{ needs.check_commit.outputs.IS_RELEASE }}
50-
LATEST_COMMIT_MSG: ${{ needs.check_commit.outputs.LATEST_COMMIT_MSG }}
5149
steps:
5250
- name: Check out Git repository
5351
uses: actions/checkout@v4
@@ -66,6 +64,7 @@ jobs:
6664
- name: Bump version
6765
run: |
6866
set -e
67+
LATEST_COMMIT_MSG=$(git log -1 --pretty=%B | cat)
6968
7069
echo "Extract the latest tag version"
7170
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))

0 commit comments

Comments
 (0)
Please sign in to comment.