diff --git a/.github/workflows/deploy-hugo-site.yml b/.github/workflows/deploy-hugo-site.yml index 37742f2e..d76ec3ed 100644 --- a/.github/workflows/deploy-hugo-site.yml +++ b/.github/workflows/deploy-hugo-site.yml @@ -26,27 +26,7 @@ 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/ - --exclude-path ./content/blog/nuttx-getting-started/ - . - # Fail action on broken links - fail: true - build-and-deploy: - needs: check-links runs-on: ubuntu-latest steps: diff --git a/.github/workflows/pr-check-links.yml b/.github/workflows/pr-check-links.yml new file mode 100644 index 00000000..10980ef7 --- /dev/null +++ b/.github/workflows/pr-check-links.yml @@ -0,0 +1,24 @@ +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 diff --git a/.lycheeignore b/.lycheeignore index e69de29b..1a87bb73 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -0,0 +1,4 @@ +# content/blog/books-simplified-embedded-rust/index.md +http://ser-book.com/espnostd +http://ser-book.com/espstd +https://www.theembeddedrustacean.com/subscribe