From aa3024fffb26dc54ce4fb1d2e8445d00d144f9aa Mon Sep 17 00:00:00 2001 From: d1rshan Date: Fri, 1 May 2026 19:59:51 +0530 Subject: [PATCH] optimize --- .github/workflows/semantic-pr-title.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/semantic-pr-title.yml b/.github/workflows/semantic-pr-title.yml index 56f9e538eb5e..40e884e82646 100644 --- a/.github/workflows/semantic-pr-title.yml +++ b/.github/workflows/semantic-pr-title.yml @@ -11,11 +11,17 @@ on: permissions: pull-requests: write +concurrency: + group: semantic-pr-title-${{ github.event.pull_request.number }}-${{ github.workflow }} + cancel-in-progress: true + jobs: main: name: check - runs-on: ubuntu-latest - if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} + runs-on: ubuntu-slim + if: >- + github.event.pull_request.user.login != 'dependabot[bot]' && + (github.event.action != 'edited' || github.event.changes.title != null) steps: - name: Lint and verify PR title uses: amannn/action-semantic-pull-request@v5 @@ -49,6 +55,7 @@ jobs: if: always() && (steps.lint_pr_title.outputs.error_message != null) with: header: pr-title-lint-error + skip_unchanged: true message: | Hey there and thank you for opening this pull request! 👋🏼