From 56ca79428b887a7c51a89487ed95779169cdc991 Mon Sep 17 00:00:00 2001 From: aldbr Date: Tue, 27 Aug 2024 09:50:59 +0200 Subject: [PATCH] ci(dependabot): make sure commitlint is not triggered for dependabot PRs --- .github/workflows/commit-lint.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index af9c2dd3..9635842d 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -3,17 +3,15 @@ name: Commit Lint on: push: branches-ignore: - - dependabot/** - release-please-** pull_request: branches-ignore: - - dependabot/** - release-please-** jobs: commitlint: runs-on: ubuntu-latest - if: github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web' + if: github.actor != 'dependabot[bot]' && (github.event_name != 'push' || github.repository == 'DIRACGrid/diracx-web') steps: - uses: actions/checkout@v4 with: @@ -32,4 +30,4 @@ jobs: - name: Validate PR commits with commitlint if: github.event_name == 'pull_request' - run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose \ No newline at end of file + run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose