2021-02-24 01:47:06 +00:00
|
|
|
name: Lint the changelog
|
2021-02-25 00:19:04 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened, edited]
|
2021-02-24 01:47:06 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint-changelog:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Cancel Previous Runs
|
|
|
|
uses: styfle/cancel-workflow-action@0.7.0
|
|
|
|
with:
|
|
|
|
access_token: ${{ github.token }}
|
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v2
|
2021-02-25 00:19:04 +00:00
|
|
|
if: github.event.pull_request.user.login != 'renovate'
|
|
|
|
- name: skip-workflow
|
|
|
|
id: skip-workflow
|
|
|
|
uses: saulmaldonado/skip-workflow@v1.1.0
|
|
|
|
with:
|
|
|
|
phrase: /no changelog/i
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
pr-message: 'body'
|
|
|
|
search: '["pull_request"]'
|
2021-02-24 01:47:06 +00:00
|
|
|
- name: Check for changelog entry
|
2021-02-25 00:19:04 +00:00
|
|
|
if: github.event.pull_request.user.login != 'renovate' && !steps.skip-workflow.outputs.skip
|
2021-02-24 01:47:06 +00:00
|
|
|
env:
|
|
|
|
PR_NUMBER: ${{github.event.number}}
|
|
|
|
run: bin/ci/lint-changelog.sh
|
|
|
|
shell: bash
|
|
|
|
- name: Add a reminder label to the PR
|
|
|
|
uses: ./.github/actions/pr-labeler
|
2021-02-25 00:19:04 +00:00
|
|
|
if: github.event.pull_request.user.login != 'renovate' && !steps.skip-workflow.outputs.skip && always()
|
2021-02-24 01:47:06 +00:00
|
|
|
with:
|
|
|
|
access_token: ${{ github.token }}
|
|
|
|
label: ${{ env.label }}
|
|
|
|
action: ${{ env.label_action }}
|