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 }}