Skip to content

Select/exclude a branch from processing #153

Select/exclude a branch from processing

Select/exclude a branch from processing #153

Workflow file for this run

name: check-changelog
on:
pull_request:
branches: [main]
jobs:
check-changelog-entry:
if: "!contains(github.event.pull_request.labels.*.name, 'no-changelog-entry-needed')"
runs-on: ubuntu-latest
steps:
- name: Checkout PR branch
uses: actions/checkout@v3
- name: Find changelog entry
env:
PR_NUMBER: ${{ github.event.number }}
run: |
if compgen -G "docs/changes/$PR_NUMBER.*.rst"; then
echo "changelog exists"
else
echo "changelog entry not found"
exit 1
fi