mirror of
https://github.com/pFarb/awesome-crypto-papers.git
synced 2024-10-01 01:05:51 -04:00
2a79c8842d
* Fix actions so they run only once on Sunday * Increase timeout to prevent false positives Set timeout to 60 seconds, instead of default 20. * Pin lychee version It is recommended by the lychee-action authors: https://github.com/lycheeverse/lychee-action#security-and-updates
30 lines
743 B
YAML
30 lines
743 B
YAML
name: Links
|
|
|
|
on:
|
|
repository_dispatch:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "00 1 * * 0" # run at 01:00 on Sundays
|
|
|
|
jobs:
|
|
linkChecker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Link Checker
|
|
id: lychee
|
|
uses: lycheeverse/lychee-action@v1.5.1
|
|
with:
|
|
args: --verbose --no-progress './**/*.md' './**/*.html' --timeout 60
|
|
env:
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
- name: Create Issue From File
|
|
if: steps.lychee.outputs.exit_code != 0
|
|
uses: peter-evans/create-issue-from-file@v4
|
|
with:
|
|
title: Link Checker Report
|
|
content-filepath: ./lychee/out.md
|
|
labels: report, automated issue
|