2020-06-05 23:00:23 +00:00
|
|
|
name: Pull Request Changelog Check
|
2022-07-28 09:43:34 +00:00
|
|
|
# by setting `on: [pull_request]`, that means action will be trigger when PR is opened, synchronize, reopened.
|
|
|
|
# Add labeled and unlabeled events too.
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened, labeled, unlabeled]
|
2019-12-18 22:08:31 +00:00
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
2020-06-05 23:00:23 +00:00
|
|
|
name: Run Changelog Check
|
2019-12-18 22:08:31 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Check out the code
|
2020-03-23 17:32:05 +00:00
|
|
|
uses: actions/checkout@v2
|
2019-12-18 22:08:31 +00:00
|
|
|
|
2020-06-05 23:00:23 +00:00
|
|
|
- name: Changelog check
|
2021-02-09 19:00:23 +00:00
|
|
|
if: ${{ !(contains(github.event.pull_request.labels.*.name, 'kind/changelog-not-required') || contains(github.event.pull_request.labels.*.name, 'Design') || contains(github.event.pull_request.labels.*.name, 'Website') || contains(github.event.pull_request.labels.*.name, 'Documentation'))}}
|
2020-06-05 23:00:23 +00:00
|
|
|
run: ./hack/changelog-check.sh
|