Skip to content

https://redhat.atlassian.net/browse/ACM-4177 #14680

https://redhat.atlassian.net/browse/ACM-4177

https://redhat.atlassian.net/browse/ACM-4177 #14680

Workflow file for this run

name: Linting
on:
pull_request:
jobs:
asciidoc:
name: Build AsciiDocs
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Install asciidoctor
run: |
sudo apt-get install -y asciidoctor
- name: Build each .adoc with Asciidoctor, fail on WARN or above
run: |
find . -name \*.adoc -exec asciidoctor --failure-level WARN --trace --verbose --warnings {} +
- name: Restore lychee cache
uses: actions/cache@v5
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Link Check
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: >-
--cache
--verbose
--max-cache-age 3d
--no-progress
--max-concurrency 30
--timeout 30
--retry-wait-time 30
--scheme http
--scheme https
--require-https
--accept 200..=299,403,429,302,500
--exclude https://github.com/stolostron/backlog/.*
./**/main.html
fail: true