Merge pull request #17204 from machine424/ccl
chore(workflows/check_release_notes): do not run on dependabot PRs and only run against main
This commit is contained in:
commit
356e778a0d
|
@ -1,6 +1,8 @@
|
||||||
name: 'Check release notes'
|
name: 'Check release notes'
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
- reopened
|
- reopened
|
||||||
|
@ -14,7 +16,9 @@ jobs:
|
||||||
check_release_notes:
|
check_release_notes:
|
||||||
name: check
|
name: check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
|
# Don't run this workflow on forks.
|
||||||
|
# Don't run it on dependabot PRs either as humans would take control in case a bump introduces a breaking change.
|
||||||
|
if: (github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community') && github.event.pull_request.user.login != 'dependabot[bot]'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- env:
|
- env:
|
||||||
|
|
Loading…
Reference in New Issue