Prevent lint-newsfile job activating when fixing dependabot PR branches (#19220)

This commit is contained in:
Andrew Morgan
2025-11-27 16:15:06 +00:00
committed by GitHub
parent 703464c1f7
commit 52089f1f79
2 changed files with 3 additions and 1 deletions

View File

@@ -192,7 +192,8 @@ jobs:
run: scripts-dev/check_line_terminators.sh run: scripts-dev/check_line_terminators.sh
lint-newsfile: lint-newsfile:
if: ${{ (github.base_ref == 'develop' || contains(github.base_ref, 'release-')) && github.actor != 'dependabot[bot]' }} # Only run on pull_request events, targeting develop/release branches, and skip when the PR author is dependabot[bot].
if: ${{ github.event_name == 'pull_request' && (github.base_ref == 'develop' || contains(github.base_ref, 'release-')) && github.event.pull_request.user.login != 'dependabot[bot]' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0

1
changelog.d/19220.misc Normal file
View File

@@ -0,0 +1 @@
Prevent changelog check CI running on @dependabot's PRs even when a human has modified the branch.