From ffb04f2af558d294a2cdf1a4b1cde4cc79baa912 Mon Sep 17 00:00:00 2001 From: Christian Fehmer Date: Thu, 15 Aug 2024 00:23:17 +0200 Subject: [PATCH] ci: skip semantic pr title for dependabot (@fehmer) (#5786) --- .github/workflows/semantic-pr-title.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/semantic-pr-title.yml b/.github/workflows/semantic-pr-title.yml index 432fe1a0c..d98760a4d 100644 --- a/.github/workflows/semantic-pr-title.yml +++ b/.github/workflows/semantic-pr-title.yml @@ -15,11 +15,11 @@ jobs: main: name: check runs-on: ubuntu-latest + if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} steps: - name: Lint and verify PR title uses: amannn/action-semantic-pull-request@v5 id: lint_pr_title - if: github.actor != 'dependabot[bot]' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -50,7 +50,7 @@ jobs: - uses: marocchino/sticky-pull-request-comment@v2 # When the previous steps fails, the workflow would stop. By adding this # condition you can continue the execution with the populated error message. - if: always() && (github.actor != 'dependabot[bot]') && (steps.lint_pr_title.outputs.error_message != null) + if: always() && (steps.lint_pr_title.outputs.error_message != null) with: header: pr-title-lint-error message: |