Prevent lint-newsfile job activating when fixing dependabot PR branches (#19220)
This commit is contained in:
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@@ -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
1
changelog.d/19220.misc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Prevent changelog check CI running on @dependabot's PRs even when a human has modified the branch.
|
||||||
Reference in New Issue
Block a user