Blog/migration ESP32 OTA article #27
Workflow file for this run
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
name: Check links | |
on: | |
pull_request: | |
branches: [main] | |
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/ | |
. | |
# Fail action on broken links | |
fail: true | |
- name: Suggestions | |
if: failure() | |
run: | | |
echo -e "\nPlease review the links reported in Link Checker step above." | |
echo -e "If a link is valid but fails due to a CAPTCHA challenge, IP blocking, login requirements, etc., | |
consider adding such links to .lycheeignore file to bypass future checks.\n" | |
exit 1 |