chore(deps): pin actions/delete-package-versions action to e5bc658 #646
Workflow file for this run
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: CommitLint | |
concurrency: | |
cancel-in-progress: true | |
group: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
commitlint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- run: env | sort | |
- name: Install commitlint with conventional config | |
run: npm install --save-dev @commitlint/config-conventional @commitlint/cli | |
- name: Validate the latest commit message with commitlint | |
if: github.event_name == 'push' | |
run: echo "${{ github.event.head_commit.message }}" | npx commitlint | |
- name: Validate pull request title with commitlint | |
if: github.event_name == 'pull_request' | |
run: echo "${{ github.event.pull_request.title }}" | npx commitlint | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- edited | |
push: | |
branches: | |
- main |