Skip to content

Merge branch 'main' of https://github.com/UPPMAX/programming_formalisms #19

Merge branch 'main' of https://github.com/UPPMAX/programming_formalisms

Merge branch 'main' of https://github.com/UPPMAX/programming_formalisms #19

# Check that there is correct markdown in all files
name: Check markdown
# Check spelling on the 21st day of the month.
# 21st as the first letter of this repo is the 21st letter in the alphabet.
on:
push:
pull_request:
schedule:
- cron: "0 0 21 * *"
jobs:
check_markdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Set up Git repository
uses: actions/checkout@v4
# We don't care about all files having valid markdown
- name: Remove files to be ignored
run: |
rm -rf common_practices
rm -rf development_design
rm -rf evaluations
rm -rf lesson_plans
rm -rf meeting_notes
rm -rf shared_documents
rm -rf docs/algorithms/algorithms_lecture
# Indented blocks are ignored, as the linter assumes it to be code.
# In our case, it is not: for us, it is usually an admonition (i.e. a 'question' or 'info' block)
# Here all indented text is unindented
# https://github.com/UPPMAX/UPPMAX-documentation/issues/114
- name: unindent text
run: ./scripts/unindent_text.sh
- uses: articulate/actions-markdownlint@v1
with:
config: .markdownlint.jsonc
ignore: .markdownlintignore
# There are many linters with the same name,
# this is the linter whose documentation to look into :-)
- name: CLI to the linter is at https://github.com/igorshubovych/markdownlint-cli
run: echo "CLI to the linter is at https://github.com/igorshubovych/markdownlint-cli"
# There are many linters with the same name,
# this is the linter whose documentation to look into :-)
- name: Linter is at https://github.com/DavidAnson/markdownlint
run: echo "Linter is at https://github.com/DavidAnson/markdownlint"