links #16
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: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 1 * *" | |
jobs: | |
linkChecker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt-get install ruby-full build-essential zlib1g-dev git | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2.0' | |
- run: gem install bundler jekyll --no-document | |
- run: bundle install | |
- run: bundle exec jekyll build | |
- name: Link Checker | |
id: lychee | |
uses: lycheeverse/[email protected] | |
with: | |
args: --verbose --max-concurrency 1 --retry-wait-time 30 --exclude-mail './_site/**/*.html' | |
- name: Create Issue From File | |
if: env.lychee_exit_code != 0 | |
uses: peter-evans/create-issue-from-file@v4 | |
with: | |
title: Link Checker Report | |
content-filepath: ./lychee/out.md | |
labels: bug |