26 lines
773 B
YAML
26 lines
773 B
YAML
|
---
|
||
|
name: Linting markdown on PR
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
|
||
|
jobs:
|
||
|
unicode-check:
|
||
|
runs-on: ubuntu-latest
|
||
|
container:
|
||
|
image: catthehacker/ubuntu:act-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
|
||
|
- name: run markdownlint on changed files
|
||
|
uses: docker://ghcr.io/igorshubovych/markdownlint-cli
|
||
|
with:
|
||
|
entrypoint: /bin/sh
|
||
|
args: -c 'apk -U add git bash ; bash .gitea/workflows/markdownlint_pr.sh ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}'
|
||
|
|
||
|
- name: check for unwanted unicode runes
|
||
|
run: |
|
||
|
bash .gitea/workflows/unwanted_unicode_pr.sh ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
|