Skip to content

fix(deps): bump actions/checkout from 6.0.0 to 6.0.1 #3975

fix(deps): bump actions/checkout from 6.0.0 to 6.0.1

fix(deps): bump actions/checkout from 6.0.0 to 6.0.1 #3975

name: "Lint PR title"
on:
pull_request_target:
types:
- opened
- edited
- synchronize
branches:
- 'main'
- 'develop'
permissions:
contents: read
jobs:
lint:
if: ${{ github.head_ref != 'develop' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install dependencies
run: npm install @commitlint/cli @commitlint/config-conventional
- name: Validate PR title
run: |
PR_TITLE=$(jq -r '.pull_request.title' "$GITHUB_EVENT_PATH")
echo "$PR_TITLE" | npx commitlint --config commitlint.config.js