-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #685 from ACCESS-NRI/development
Periodical merge
- Loading branch information
Showing
68 changed files
with
2,307 additions
and
2,167 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,26 @@ | ||
name: Check Markdown links | ||
name: Check links | ||
|
||
on: | ||
push: | ||
schedule: | ||
# Run at 03:07 every Sunday | ||
- cron: "7 3 * * SUN" | ||
pull_request: #Action fires anytime a PR is (re)opened or synchronized | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
schedule: | ||
# Run every Sunday at 03:07 (AEDT) | ||
# AEDT is UTC+10 --> Sunday at 03:07 AEDT is Saturday at 17:07 UTC | ||
- cron: "7 17 * * SAT" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
markdown-link-check: | ||
if: ${{ github.event_name != 'schedule' }} | ||
link-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
- name: Checkout repo | ||
uses: actions/checkout@master | ||
|
||
- name: Link checker | ||
uses: lycheeverse/[email protected] | ||
with: | ||
config-file: '.github/workflows/mlc_config.json' | ||
folder-path: 'docs' | ||
# Only check links in modified files to reduce false positives | ||
check-modified-files-only: 'yes' | ||
use-quiet-mode: 'no' | ||
use-verbose-mode: 'yes' | ||
base-branch: 'main' | ||
|
||
scheduled-markdown-link-check: | ||
if: ${{ github.event_name == 'schedule' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | ||
with: | ||
use-quiet-mode: 'no' | ||
use-verbose-mode: 'yes' | ||
config-file: '.github/workflows/mlc_config.json' | ||
folder-path: 'docs' | ||
base-branch: 'main' | ||
|
||
fail: true | ||
args: --config .github/workflows/lychee-config.toml './docs/**/*.md' './docs/**/*.html' |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Configuration file for lychee link-checker (https://github.com/lycheeverse/lychee/blob/master/lychee.example.toml) | ||
|
||
# Exclude URLs and mail addresses from checking (supports regex). | ||
exclude = [ | ||
'^https://code\.metoffice\.gov\.uk', | ||
'^https://web\.archive\.org/web/', | ||
'^http://127\.0\.0\.1:8000', | ||
'^https://www.linkedin.com/', | ||
] | ||
|
||
# Exclude these filesystem paths from getting checked. | ||
exclude_path = [ | ||
"./docs/fontello", | ||
"./docs/fontawesome*", | ||
] | ||
|
||
# Set verbose level | ||
verbose = "info" | ||
|
||
# Don't show interactive progress bar while checking links. | ||
no_progress = true | ||
|
||
# Enable link caching. This can be helpful to avoid checking the same links on | ||
# multiple runs. | ||
cache = true | ||
|
||
# Discard all cached requests older than this duration. | ||
max_cache_age = "3d" | ||
|
||
# Base URL or website root directory to check relative URLs. | ||
base = "https://access-hive.org.au/" | ||
|
||
# Check links inside `<code>` and `<pre>` blocks as well as Markdown code | ||
# blocks. | ||
include_verbatim = true | ||
|
||
# Check mail addresses | ||
include_mail = true | ||
|
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.