Skip to content

Zowe v2.16 webhelp, type doc #2559

Zowe v2.16 webhelp, type doc

Zowe v2.16 webhelp, type doc #2559

Workflow file for this run

name: Link Checker
on:
pull_request:
branches:
- docs-staging
- master
workflow_dispatch:
jobs:
test:
name: Check for broken links
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Workaround for MD links without extensions being detected as broken
- name: Create symlinks
run: |
find docs -name "*.md" -type f | while read f; do
ln -s $(basename $f) ${f%.*}
done
- name: Restore lychee cache
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.base_ref || github.ref_name }}
restore-keys: cache-lychee-
- name: Run lychee
uses: lycheeverse/lychee-action@v1
with:
args: "--accept 403,406,429 --cache --max-cache-age 1d --max-concurrency 2 --no-progress --timeout 60 --verbose 'docs/**/*.md'"
fail: true
token: ${{ secrets.GITHUB_TOKEN }}