Skip to content

Commit

Permalink
[release] [minor] fix release action
Browse files Browse the repository at this point in the history
Co-authored by SockworkOrange
  • Loading branch information
SockworkOrange committed Jul 15, 2024
1 parent ba169bb commit 6ec3502
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ on:
workflows: [CI]
types: [completed]
branches: [main]

push:
branches: [ "small-fix-to-release" ]

jobs:
check_commit:
name: Check Commit
Expand All @@ -27,13 +29,14 @@ jobs:
- name: Check latest commit message
id: check_msg
run: |
set -ex
LATEST_COMMIT_MSG=$(git log -1 --pretty=%B | cat)
if [[ ${LATEST_COMMIT_MSG} == *"[release]"* ]]; then
echo "release message found - continuing with the release"
IS_RELEASE="true"
else
echo "release message found - skipping..."
echo "no release message found - skipping..."
IS_RELEASE="false"
fi
Expand Down

0 comments on commit 6ec3502

Please # to comment.