Skip to content

Commit

Permalink
ci(linkchecker): GitHub workflow for linkchecker (#510)
Browse files Browse the repository at this point in the history
* ci(linkchecker): GitHub workflow for linkchecker
* ci(linkchecker): log default SIGNOZ_WEBSITE_URL
* ci(linkchecker): enable external links and use 100 threads
* ci(linkchecker): ignore localhost

---------

Signed-off-by: Prashant Shahi <[email protected]>
  • Loading branch information
prashant-shahi authored Sep 4, 2024
1 parent 0cc17ca commit c01fa70
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/lintchecker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: linkchecker

# run every day at 10:00AM UTC - 3:30PM IST
on:
schedule:
- cron: '0 10 * * *'

workflow_dispatch:
inputs:
signozWebsiteUrl:
description: 'SigNoz Website URL'
type: string
required: false

jobs:
linkchecker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install linkchecker
run: |
pip3 install linkchecker
- name: Run linkchecker
env:
SIGNOZ_WEBSITE_URL: ${{ github.event.inputs.signozWebsiteUrl }}
run: |
set -e
if [ -z "$SIGNOZ_WEBSITE_URL" ]; then
SIGNOZ_WEBSITE_URL=https://signoz.io
fi
echo "SIGNOZ_WEBSITE_URL: $SIGNOZ_WEBSITE_URL"
linkchecker -t 100 --check-extern --ignore localhost $SIGNOZ_WEBSITE_URL

0 comments on commit c01fa70

Please sign in to comment.