Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 21 additions & 16 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
schedule:
- cron: '0 12 * * 0'

permissions:
issues: write

jobs:
check_links:
name: Check Links
Expand All @@ -29,27 +32,28 @@ jobs:
id: lychee
uses: lycheeverse/lychee-action@v2.8.0
with:
fail: false # Don't fail action on broken links
output: /tmp/lychee-out.md
# 200: OK
# 429: Too many requests
args: >
--accept 429
--accept 200,429
--exclude ^ftp://
--exclude ^https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$
--exclude ^https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$
--exclude ^http://maps.google.com/mapfiles/kml/$
--exclude ^http://aa.usno.navy.mil/faq/docs/lawyers.php$
--exclude ^uhttp://my.server.com/images$
--exclude ^-W@weight.png$
--exclude ^http://topex.ucsd.edu/marine_grav/mar_grav.html
--exclude ^https://topex.ucsd.edu/sandwell/
--exclude ^http://maps.google.com/mapfiles/kml/$
--exclude ^http://nsis.sourceforge.io
--exclude ^http://topex.ucsd.edu
--exclude ^https://doi.org
--exclude ^https://www.researchgate.net/
--exclude ^http://topex.ucsd.edu/marine_grav/mar_grav.html
--exclude ^http://www.eumetsat.int
--exclude ^http://nsis.sourceforge.io
--exclude ^https://www.ethnologue.com
--exclude ^https://doi.org
--exclude ^https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$
--exclude ^https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$
--exclude ^https://linux.die.net/man/3/printf
--exclude ^https://topex.ucsd.edu/sandwell/
--exclude ^https://www.ethnologue.com
--exclude ^https://www.researchgate.net/
--exclude ^https://www.softpedia.com/get/Tweak/Registry-Tweak/EditPath.shtml
--verbose
--exclude ^http://my.server.com/images$
**/*.rst
**/*.rst_
**/*.md
Expand All @@ -59,9 +63,10 @@ jobs:
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Create Issue From File
if: env.lychee_exit_code != 0
if: github.event_name != 'workflow_dispatch' && steps.lychee.outputs.exit_code != 0
run: |
title="Link Checker Report on ${{ steps.date.outputs.date }}"
gh issue create --title "$title" --body-file ./lychee/out.md
title="Link Checker Report on ${CURRENT_DATE}"
gh issue create --title "$title" --body-file /tmp/lychee-out.md
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
CURRENT_DATE: ${{ steps.date.outputs.date }}
6 changes: 6 additions & 0 deletions .github/workflows/remind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ on:
schedule:
- cron: '0 0 1 */6 *'

permissions:
contents: read
issues: write


jobs:
review-known-failures:
name: Review Known Failures
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion admin/list_known_failures.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ ! -d cmake ]; then
exit 1
fi

known_failures=$(grep -rl "GMT_KNOWN_FAILURE" test/**/*.sh doc/**/*.sh)
known_failures=$(grep -rl --include='*.sh' 'GMT_KNOWN_FAILURE' test doc)
if [ -n "$known_failures" ]; then
echo "The following tests are marked as GMT_KNOWN_FAILURE and need review:"
echo ""
Expand Down