Links #2027
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Links | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
schedule: | |
- cron: "00 18 * * *" | |
jobs: | |
link-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Link Checker | |
id: link_check | |
uses: lycheeverse/lychee-action@cb79c9607b37671965f8dbb54cae47795758a440 #1.1.1 | |
with: | |
args: --verbose --no-progress **/*.md data/community_pages.yaml data/players.yaml data/platforms.json | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Fail on 404s | |
if: steps.link_check.outputs.exit_code != 0 | |
run: echo ::set-output name=exit_code::1 | |
- name: Upload a Build Artifact | |
uses: actions/[email protected] | |
if: steps.link_check.outputs.exit_code != 0 | |
with: | |
name: link-check Output | |
path: lychee/out.md | |
if-no-files-found: ignore |