Merge pull request #219 from atsign-foundation/dependabot/github_acti… #245
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pymarkdownlnt | |
# Runs the workflow on the below events: | |
# 1. on pull request raised to trunk branch. | |
# 2. on push event to trunk branch. | |
on: | |
push: | |
branches: | |
- trunk | |
pull_request: | |
branches: | |
- trunk | |
permissions: # added using https://github.com/step-security/secure-workflows | |
contents: read | |
jobs: | |
lint-markdown: | |
runs-on: ubuntu-24.04 | |
name: Lint Markdown | |
steps: | |
- name: Install uv | |
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0 | |
with: | |
version: "0.5.15" | |
- name: checkout repo content | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install and run linter | |
run: |- | |
sudo apt-get install python3-poetry-plugin-export | |
cd tools | |
uv venv | |
. .venv/bin/activate | |
poetry export --format requirements.txt --output requirements.txt | |
uv pip install --require-hashes -r requirements.txt | |
cd .. | |
pymarkdownlnt -s 'plugins.md024.siblings_only=$!True' scan */*.md |