From 3325e5045e652a7d7f983c5355322e853c75f97e Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 21 Feb 2023 09:23:30 +0100 Subject: [PATCH] ci: do not run commitlint GitHub Action on dependabot PRs Currently commitlint is only skipped for PR at the time dependabot creates them. Once Mergify rebases them, commitlint is started anyway. This causes failed CI runs, which then need to be ignored. It is cleaner to not run commitlint on any PR that dependabot owns. Signed-off-by: Niels de Vos --- .github/workflows/commitlint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commitlint.yaml b/.github/workflows/commitlint.yaml index 05338adac..bc637a600 100644 --- a/.github/workflows/commitlint.yaml +++ b/.github/workflows/commitlint.yaml @@ -11,7 +11,7 @@ permissions: jobs: commitlint: name: commitlint - if: ${{ github.actor != 'dependabot[bot]' }} + if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v3