From 9aff5c392ac2a7f170267070a0309e322ce759fc Mon Sep 17 00:00:00 2001 From: hyiso Date: Sat, 15 Jul 2023 18:12:44 +0800 Subject: [PATCH] fix: Github Action PR from fork --- .github/workflows/conventional_commits.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/conventional_commits.yaml b/.github/workflows/conventional_commits.yaml index bfc5fa34..d79af13d 100644 --- a/.github/workflows/conventional_commits.yaml +++ b/.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 }}