Merge pull request #211 from atsign-foundation/dependabot/github_acti… #223
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-latest | |
name: Lint Markdown | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: 3.12 #install the python needed | |
- name: checkout repo content | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install and run linter | |
run: |- | |
python3 -m pip install --require-hashes -r tools/requirements.txt | |
pymarkdownlnt -s 'plugins.md024.siblings_only=$!True' scan */*.md |