Skip to content

This adds a commit message checker, which should fail on this commit … #9

This adds a commit message checker, which should fail on this commit …

This adds a commit message checker, which should fail on this commit … #9

Workflow file for this run

name: Commit messages check
on:
pull_request:
jobs:
gitlint:
name: Check commit messages
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
pip install --upgrade gitlint
- name: Lint git commit messages
run: |
gitlint --commits origin/$GITHUB_BASE_REF.. >> $GITHUB_STEP_SUMMARY 2>&1
- name: Comment on PR
if: failure()
uses: marocchino/sticky-pull-request-comment@v2
with:
header: Commit Comment
message: |

Check failure on line 25 in .github/workflows/CommitMessage.yml

View workflow run for this annotation

GitHub Actions / Commit messages check

Invalid workflow file

The workflow is not valid. .github/workflows/CommitMessage.yml (Line: 25, Col: 18): Unrecognized named-value: 'GITHUB_STEP_SUMMARY'. Located at position 1 within expression: GITHUB_STEP_SUMMARY
```
Testing
${{ GITHUB_STEP_SUMMARY }}
```