Skip to content

Commit

Permalink
Update link-checker and clean up ignore-list
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Apr 12, 2024
1 parent 7eda01a commit 6e73378
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 141 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/links_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,13 @@ on:

jobs:
linkchecker:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Load Excludes
run: |
LYCHEE_EXCLUDE=$(sed -e :a -e 'N;s/\n/ --exclude /;ta' .lycheeexclude)
echo "LYCHEE_EXCLUDE=$LYCHEE_EXCLUDE" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Lychee Link Checker
id: lychee
uses: lycheeverse/[email protected]
uses: lycheeverse/lychee-action@v1
with:
args: --accept=200,403,429 --exclude ${{ env.LYCHEE_EXCLUDE }} --exclude-mail "**/*.html" "**/*.md" "**/*.txt" "**/*.json" "**/*.js" "**/*.ts" "**/*.tsx"
fail: true
args: --accept=200,403,429 --base . "**/*.html" "**/*.md" "**/*.txt" "**/*.json" "**/*.js" "**/*.ts" "**/*.tsx"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Fail if there were link errors
run: exit ${{ steps.lychee.outputs.exit_code }}
129 changes: 0 additions & 129 deletions .lycheeexclude

This file was deleted.

44 changes: 44 additions & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0

# Local or predefined end points
http://localhost
https://localhost
http://127.0.0.1
https://127.0.0.1
http://opensearch
https://opensearch
https://telemetry.opensearch.org/
https://telemetry-staging.opensearch.org/
https://api.github.com/repos/opensearch-project/OpenSearch-Dashboards/
https://www.quandl.com/api/v1/datasets/
file:///*
git://*

# Dummy urls in tests


# External urls
http://google.com/
https://api.worldbank.org/
https://vega.github.io/
http://twitter.com/
https://twitter.com/
https://storage.googleapis.com/
http://tools.ietf.org/
https://github.com/
http://github.com/
http://jsperf
https://jsperf
https://nodejs.org/
https://www.npmjs.com/
https://microsoft.github.io/
http://api.worldbank.org/
https://f1542b814f674090afd914960583265f.apm.us-central1.gcp.cloud.es.io/
http://threedubmedia.googlecode.com/
https://developer.mozilla.org/
https://a.tile.openstreetmap.org/
https://media-for-the-masses.theacademyofperformingartsandscience.org/
https://forum.opensearch.org/
http://api.jquery.com/*
http://brandonaaron.net

0 comments on commit 6e73378

Please sign in to comment.