GRM-58: fix: enforce commit message convention on master with CI validation
This commit is contained in:
@@ -39,6 +39,24 @@ jobs:
|
||||
id: check
|
||||
run: python3 scripts/ci/detect_release_commit.py
|
||||
|
||||
validate-commit-msg:
|
||||
needs: [detect-type]
|
||||
if: needs.detect-type.outputs.is-release == 'false'
|
||||
runs-on: docker
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Install dependencies
|
||||
run: python3 -m pip install --break-system-packages click python-dotenv
|
||||
- name: Validate latest commit message
|
||||
env:
|
||||
PYTHONPATH: .:src
|
||||
run: |
|
||||
git log -1 --format=%B > /tmp/commit-msg.txt
|
||||
python3 scripts/ci/validate_commit_msg.py /tmp/commit-msg.txt --branch master
|
||||
|
||||
release:
|
||||
needs: [detect-type]
|
||||
if: needs.detect-type.outputs.is-release == 'false'
|
||||
|
||||
Reference in New Issue
Block a user