Skip to content

Commit

Permalink
ci: Add github action to check links
Browse files Browse the repository at this point in the history
  • Loading branch information
f-hollow committed May 14, 2024
1 parent 061ecae commit 303810a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/deploy-hugo-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Run on pushes to the default branch
push:
branches:
- main
- ci/add_pre_commit_hook
# Add an option to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -26,7 +26,21 @@ defaults:
shell: bash

jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1
with:
args: --no-progress --include-fragments --exclude-path ./themes/ --exclude-path ./layouts/ .
# Don't fail action on broken links
fail: true

build-and-deploy:
needs: check-links
runs-on: ubuntu-latest
steps:

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ pip install -r requirements.txt
# Set up git hook scripts
pre-commit install
```

The faulty link: [Developer Portal](https://deve.espressif.com/)

Internal link: [link](./content/pages/contribution_guide/asciinema_casts/inde)

Link in the same file: [internal](#use-pre-comm)

0 comments on commit 303810a

Please sign in to comment.