name: Lint Commit Messages on: # Trigger the workflow on push or pull request, # but only for the main branch # See: https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012 push: branches: - main pull_request: branches: - main jobs: commitlint: runs-on: ubuntu-latest steps: - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 with: fetch-depth: 0 - uses: wagoid/commitlint-github-action@416045160973f9fff174ac6698412cfe7181c3f3 # v4