-
Notifications
You must be signed in to change notification settings - Fork 46
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 #486 from cofinoa/resolving-issues-link-checker
Resolving issues link checker
- Loading branch information
Showing
8 changed files
with
368 additions
and
328 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 was deleted.
Oops, something went wrong.
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,57 @@ | ||
# | ||
# GitHub Actions Workflow to check links on CF website artifact, and reopen related issue | ||
# | ||
# For more information on the actions used in this workflow, please see: | ||
# https://github.com/lycheeverse/lychee-action | ||
# https://github.com/actions/download-artifact | ||
# https://github.com/micalevisk/last-issue-action | ||
# https://github.com/peter-evans/create-issue-from-file | ||
|
||
name: Check links on CF conventions web page | ||
on: | ||
schedule: | ||
- cron: '23 8 * * 1' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check_links: | ||
name: Check links # TODO: Check also Asciidoc (this should take place in https://github.com/cf-convention/cf-conventions) | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download CF Website artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: CF Website | ||
path: ./_site/ | ||
|
||
- name: Check markdown links | ||
uses: lycheeverse/lychee-action@v1 | ||
with: | ||
fail: true | ||
format: markdown | ||
jobSummary: true | ||
output: ./lychee/results.md | ||
args: --config lychee.toml ./_site/ | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Find Link Checker Issue | ||
id: link-checker-issue | ||
uses: micalevisk/last-issue-action@v2 | ||
with: | ||
state: open | ||
labels: | | ||
link-checker, report, automated issue | ||
- name: Update Issue | ||
uses: peter-evans/create-issue-from-file@v5 | ||
with: | ||
title: "Broken links detected in CF Website artifact 🔗" | ||
# Update an existing issue if one was found (issue-number), | ||
# otherwise an empty value creates a new issue: | ||
issue-number: "${{ steps.link-checker-issue.outputs.issue_number }}" | ||
content-filepath: ./lychee/results.md | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: | | ||
link-checker, report, automated issue |
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,35 @@ | ||
verbose = "info" | ||
no_progress = true | ||
exclude = [ | ||
"cfeditor.ceda.ac.uk", # standard_name_rule, vocabularies, discussion | ||
# "wps-web1.ceda.ac.uk", | ||
# "http://kitt.llnl.gov/trac/wiki/SatelliteData", | ||
# "http://cf-trac.llnl.gov/trac/", | ||
"https://mailman.cgd.ucar.edu/pipermail/cf-metadata", # discussion, governance | ||
# Data/cf-standard-names/ | ||
"http://glossary.ametsoc.org/wiki", | ||
"https://www.unidata.ucar.edu/software/udunits/udunits-current/doc/udunits", | ||
"https://www.unidata.ucar.edu/software/udunits/udunits-2.2.28/udunits2.html", | ||
"https://www.sciencedirect.com/science/article/pii/0967063793901018", | ||
"https://www.ipcc.ch/ipccreports/tar/wg1/273.htm", | ||
"http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata", | ||
"http://gcmd.nasa.gov/Resources/valids", | ||
# | ||
"http://mmisw.org/ont", # faq (TIMEOUT) | ||
"https://mmisw.org/ont", # faq (TIMEOUT) | ||
"http://www.cgd.ucar.edu/cms/eaton/cf-metadata/clivar_article.pdf", # Data/cf-documents/cf-governance/cf2_whitepaper_final.html | ||
"http://www.cgd.ucar.edu/cms/eaton/cf-metadata/CF-current.html", # Data/cf-documents/requirements-recommendations | ||
"https://www.usbr.gov/lc/socal/reports/SMappend_C.pdf", # Data/area-type-table/**/build/area-type-table.html | ||
"https://cf-trac.llnl.gov/trac/", # 2018-Workshop, 2019-Workshop | ||
"http://mailman.cgd.ucar.edu/pipermail/cf-metadata", # 2019-Workshop | ||
"https://www.wonder.me", # 2021-Workshop | ||
"https://figshare.com/account/articles/24633939", # 2023-Workshop | ||
"https://figshare.com/account/articles/24633894", # 2023-Workshop | ||
# "https://github.com/", # Uncomment if you hit GitHub Rate Limit: https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api | ||
] | ||
exclude_path = [ | ||
# Jekyll post build directory (i.e. _site) | ||
"_site/Data/cf-standard-names/docs/guidelines.html", | ||
"_site/Data/cf-conventions/", | ||
"_site/Data/Trac-tickets/", | ||
] |
This file was deleted.
Oops, something went wrong.
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.