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
This commit is contained in:
Nazar Serhiichuk 2022-10-02 15:22:18 +03:00 committed by GitHub
parent 994a614d56
commit 2a79c8842d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -11,8 +11,9 @@ jobs:
- uses: actions/checkout@v3
- name: Link Checker
uses: lycheeverse/lychee-action@v1
uses: lycheeverse/lychee-action@v1.5.1
with:
args: --verbose --no-progress './**/*.md' './**/*.html' --timeout 60
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

View File

@ -4,7 +4,7 @@ on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "* * * * 0" # run every Sunday
- cron: "00 1 * * 0" # run at 01:00 on Sundays
jobs:
linkChecker:
@ -14,7 +14,9 @@ jobs:
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1
uses: lycheeverse/lychee-action@v1.5.1
with:
args: --verbose --no-progress './**/*.md' './**/*.html' --timeout 60
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}