DiffCov/.github/workflows/ct-commitlint.yml
Ade Attwood 462048fb12 ci: make the current directory safe for git
This is also done in actions/checkout but for some reason dose not work.
I think its got something to do with us using a container for the
action.
2023-01-09 17:31:08 +00:00

21 lines
525 B
YAML

name: Conventional Tools Commitlint
on:
push: { branches: ["0.x"] }
pull_request: { branches: ["0.x"] }
jobs:
commits:
name: Commitlint
runs-on: ubuntu-latest
container: registry.k1.zportal.co.uk/practically-oss/conventional-tools:1.x
steps:
- name: Checkout
uses: actions/checkout@v3
with: {fetch-depth: 1000}
- name: Git safe.directory
run: git config --global --add safe.directory $PWD
- name: Lint commits
run: conventional-tools commitlint -l1