Files
NexQuant/.github/workflows/pr.yml
T
Linlang 06e1c705d2 fix: fix release CI error (#160)
* fix release CI error

* reset version

* fix error code

* change private_key path

* add pr title  rules

* reset version
2024-08-05 17:34:03 +08:00

23 lines
724 B
YAML

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
lint-title:
runs-on: ubuntu-latest
steps:
- name: Check PR Title for Conventional Commit Format
run: |
if ! echo "${{ github.event.pull_request.title }}" | grep -Pq '^(build|chore|ci|deps|doc|docs|feat|fix|perf|ref|refactor|revert|style|test|tests|Bump version)(\(\w+\))?!?:\s.*'; then
echo 'The title does not conform to the Conventional Commit.'
echo 'Please refer to "https://www.conventionalcommits.org/"'
exit 1
fi
name: Lint pull request title
on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited