Browse Source

fix: Github Action PR from fork

pull/481/head
hyiso 1 year ago committed by GitHub
parent
commit
9aff5c392a
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 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Install dart - name: Install dart
uses: dart-lang/setup-dart@v1 uses: dart-lang/setup-dart@v1
@ -19,4 +18,4 @@ jobs:
run: dart pub get run: dart pub get
- name: Lint conventional commits - 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