cleanlab--cleanlab
63254c55b6
There are a couple levels of encoding here, which makes it hard to write the regex.
30 行
750 B
YAML
30 行
750 B
YAML
name: GitHub Markdown Links
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
- cron: '0 8 * * 6'
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: sudo apt-get update -y
|
|
- run: >-
|
|
sudo apt-get install -y
|
|
pandoc
|
|
- uses: actions/checkout@v3
|
|
- run: |
|
|
find . -name '*.html' -delete
|
|
- run: |
|
|
find . -name '*.md' -exec pandoc -i {} -o {}.html \;
|
|
- uses: anishathalye/proof-html@v2
|
|
with:
|
|
directory: .
|
|
check_html: false
|
|
check_favicon: false
|
|
ignore_missing_alt: true
|
|
tokens: |
|
|
{"https://github.com": "${{ secrets.GITHUB_TOKEN }}"}
|
|
swap_urls: |
|
|
{"^(\\..*)\\.md(#?.*)$": "\\1.md.html\\2"}
|