Skip to content

Fix HTML handling of </> #95

Fix HTML handling of </>

Fix HTML handling of </> #95

name: changelog-validator
on:
pull_request:
paths:
# Only run if changes were made to the changelog
- 'docs/changelog.md'
jobs:
validate-unreleased:
# Validates changelog and confirms that an Unreleased entry exists.
# Only run when the `release` label is not set on a PR.
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'release') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate Changelog
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
validation_level: error
path: docs/changelog.md
version: Unreleased
validate-release:
# Validates changelog and confirms an entry exists for version in code.
# Only run when the `release` label is set on a PR.
if: ${{ contains(github.event.pull_request.labels.*.name, 'release') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install Markdown
run: python -m pip install semver .
- name: Get Markdown Version
id: markdown
run: echo "version=$(python -c 'import markdown, semver; print(semver.Version.parse(markdown.__version__, optional_minor_and_patch=True))')" >> $GITHUB_OUTPUT
- name: Validate Changelog
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
validation_level: error
path: docs/changelog.md
version: ${{ steps.markdown.outputs.version }}