mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 08:56:43 +00:00
ci: fix pr file checker (#9694)
* filter github pr file checker on the right labels object * only check PR files when the PR is opened
This commit is contained in:
parent
7f455b9a42
commit
a4d5738a4e
6
.github/workflows/pr-file-checker.yml
vendored
6
.github/workflows/pr-file-checker.yml
vendored
@ -7,8 +7,8 @@
|
|||||||
# never call any makefiles or scripts. It must never be changed to run any code from the checkout.
|
# never call any makefiles or scripts. It must never be changed to run any code from the checkout.
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
|
types: [opened]
|
||||||
# Runs on PRs to master and all release branches
|
# Runs on PRs to master and all release branches
|
||||||
# By default it triggers on opened, synchronize, or reopened PRs
|
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- release/*
|
- release/*
|
||||||
@ -17,7 +17,7 @@ jobs:
|
|||||||
# checks that a .changelog entry is present for a PR
|
# checks that a .changelog entry is present for a PR
|
||||||
changelog-check:
|
changelog-check:
|
||||||
# If there a `pr/no-changelog` label we ignore this check
|
# If there a `pr/no-changelog` label we ignore this check
|
||||||
if: "!${{ contains(github.event.pull_request.label.*.name, 'pr/no-changelog')}}"
|
if: "!${{ contains(github.event.pull_request.labels.*.name, 'pr/no-changelog')}}"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -46,7 +46,7 @@ jobs:
|
|||||||
# checks that a 'type/docs-cherrypick' label is attached to PRs with website/ changes
|
# checks that a 'type/docs-cherrypick' label is attached to PRs with website/ changes
|
||||||
website-check:
|
website-check:
|
||||||
# If there's a `type/docs-cherrypick` label we ignore this check
|
# If there's a `type/docs-cherrypick` label we ignore this check
|
||||||
if: "!${{ contains(github.event.pull_request.label.*.name, 'type/docs-cherrypick')}}"
|
if: "!${{ contains(github.event.pull_request.labels.*.name, 'type/docs-cherrypick')}}"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user