Browse Source

Merge pull request #481 from hyiso/fix/pr_commits

fix: Github Action PR from fork
pull/485/head
Kate 1 year ago committed by GitHub
parent
commit
f3af2dcadf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .github/workflows/conventional_commits.yaml

3
.github/workflows/conventional_commits.yaml

@ -11,7 +11,6 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Install dart
uses: dart-lang/setup-dart@v1
@ -19,4 +18,4 @@ jobs:
run: dart pub get
- name: Lint conventional commits
run: dart run commitlint_cli --from="origin/${{ github.base_ref }}" --to="${{ github.head_ref }}"
run: dart run commitlint_cli --from=${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to=${{ github.event.pull_request.head.sha }}

Loading…
Cancel
Save