-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
1,149 additions
and
370 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
{Short description} | ||
|
||
{More details, or remove this line} | ||
{Description of the change} | ||
|
||
-- Remove this line and following from the merge commit message -- | ||
|
||
{JIRA / GitHub issue, or remove this line} | ||
{Upstream code PR, or remove this line} | ||
|
||
Confirm that tests pass and this change is ready for review: | ||
- [ ] Local `hugo serve` | ||
- [ ] Local `vale ./content` |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,34 @@ | ||
name: Lychee check | ||
on: | ||
pull_request: | ||
paths: | ||
- '**.md' | ||
repository_dispatch: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "5 0 1 * *" # In UTC, currently 12:05 AM on the 1st of each month | ||
|
||
jobs: | ||
lychee: | ||
linkChecker: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write # required for peter-evans/create-issue-from-file | ||
steps: | ||
# check URLs with Lychee | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v45 | ||
with: | ||
files: "**.md" | ||
|
||
- name: Link Checker | ||
id: lychee | ||
uses: lycheeverse/lychee-action@v1.10.0 | ||
uses: lycheeverse/lychee-action@v2 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: > | ||
--scheme https --scheme http --verbose --no-cache | ||
--user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" | ||
--max-concurrency 5 --retry-count 3 --retry-delay 2 | ||
${{ steps.changed-files.outputs.all_changed_files }} | ||
args: "--base content --accept 200,429 --user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)' --scheme https --scheme http --max-concurrency 5 --max-retries 1 --retry-wait-time 2 --verbose --no-progress './**/*.md' './**/*.html'" | ||
fail: false | ||
env: | ||
# to be used in case rate limits are surpassed | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: Create PR comment with link reults | ||
uses: marocchino/sticky-pull-request-comment@v2 | ||
- name: Create Issue From File | ||
if: steps.lychee.outputs.exit_code != 0 | ||
uses: peter-evans/create-issue-from-file@v5 | ||
with: | ||
header: lychee | ||
recreate: true | ||
path: ./lychee/out.md | ||
title: Link Checker Report | ||
content-filepath: ./lychee/out.md | ||
labels: report, automated issue |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
Oops, something went wrong.