awesome-crypto-papers/.github/workflows/links.yml
Nazar Serhiichuk 2a79c8842d
Fix action schedule, increase timeout and pin version (#23)
* 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
2022-10-02 15:22:18 +03:00

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