diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 98e5158..d3e22f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,9 @@ on: workflows: [CI] types: [completed] branches: [main] - + push: + branches: [ "small-fix-to-release" ] + jobs: check_commit: name: Check Commit @@ -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