diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ee4b39f5..b62ea58a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,6 +79,21 @@ jobs: fi echo "All versions match: $ROOT_VERSION" + - name: Check for unresolved PR placeholders in CHANGELOG + run: | + if [ -f CHANGELOG.md ]; then + if grep -qF '(#PR)' CHANGELOG.md; then + echo "::error file=CHANGELOG.md::Found unresolved '(#PR)' placeholder(s). Please replace with the actual PR number." + exit 1 + else + grep_status=$? + if [ "$grep_status" -ne 1 ]; then + echo "::error file=CHANGELOG.md::Unable to scan CHANGELOG.md." + exit "$grep_status" + fi + fi + fi + - name: Lint uses: nick-fields/retry@v4 with: