Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

autogen: updated common files in HiromiShikata #60

autogen: updated common files in HiromiShikata

autogen: updated common files in HiromiShikata #60

Workflow file for this run

name: Lint Commit Messages
on: push
jobs:
commit-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
- name: Install commitlint
run: |
npm install --save-dev @commitlint/{config-conventional,cli}
- name: Lint commits
run: |
npx commitlint --from=origin/main --to=HEAD --config ./.github/workflows/configs/commitlint.config.js
check-dontmerge:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check for DONTMERGE
run: |
result=$(find . \
-type f \
! -path './.github/workflows/commit-lint.yml' \
! -name '*.snap' \
-exec grep -Hn 'DONTMERGE' {} \;)
if [[ ! -z "$result" ]]; then
echo "$result"
exit 1
fi