Skip to content

Changelog action

Changelog action #2

name: Check Pull Request Description
on:
pull_request:
types: [opened, edited]
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- run: |
body=$(jq -r <<< '${{ toJson(github.event.pull_request.body) }}')
if [[ -z $(grep -oP 'changelog: *\K\S+' <<< "$body") ]]; then
echo "::error::Pull Request body is missing `changelog: ...`"
exit 1
fi