Skip to content

chore(deps): update golangci/golangci-lint-action action to v6 #116

chore(deps): update golangci/golangci-lint-action action to v6

chore(deps): update golangci/golangci-lint-action action to v6 #116

name: Conventional Commits
on: [pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- run: echo "fetch_depth=$(( commits + 1 ))" >> "$GITHUB_ENV"
env:
commits: ${{ github.event.pull_request.commits }}
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: ${{ env.fetch_depth }}
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
- run: npm install -g @commitlint/cli @commitlint/config-conventional
- run: npx commitlint --from "$from" --to "$to" --verbose -x "$extends"
env:
from: ${{ github.event.pull_request.base.sha }}
to: ${{ github.event.pull_request.head.sha }}
extends: "@commitlint/config-conventional"