This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
docs: setup redirect #2055
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint commit message | |
on: | |
push: | |
branches: | |
- staging | |
- staging-vue3 | |
- production | |
- vue3 | |
jobs: | |
commit_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint commit message | |
run: | | |
echo "This commit should adhere to the commit message convention." | |
echo "correct format: <type>(<scope>): <subject>" | |
echo "example: feat: add modal component" | |
echo "Please amend your commit message (git commit --amend) if commitlint reports an error and push using: git push --force-with-lease" | |
npx commitlint --verbose << EOF | |
${{ github.event.head_commit.message }} | |
EOF |