clearml-docs/.github/workflows/links.yml
2021-12-27 19:45:01 +02:00

37 lines
1.0 KiB
YAML

# This is a basic workflow to help you get started with Actions
name: Links
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
#push:
# branches: [ main ]
#pull_request:
# branches: [ main ]
#schedule:
# - cron: "00 18 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Find all markdown files
id: find_files
run: |
echo "::set-output name=files::$(find . -name '*.md' -type f | sed 's|^./||' | tr '\n' ' ')"
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.2.0
with:
args: --verbose --no-progress ${{steps.find_files.outputs.files}}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}