Skip to content

Commit

Permalink
ci: Check for broken links periodically
Browse files Browse the repository at this point in the history
and upon PRs as well as commits to the main branch
  • Loading branch information
AiyionPrime committed Jan 3, 2025
1 parent 505474d commit 784a60f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Links

on:
push:
branches:
- master
pull_request:
branches:
- master
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "00 18 * * *"

jobs:
linkChecker:
runs-on: ubuntu-latest
permissions:
issues: write # required for peter-evans/create-issue-from-file
steps:
- uses: actions/checkout@v4

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
fail: false

- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue
2 changes: 2 additions & 0 deletions .lycheeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# PayPal returns 404 upon incomplete requests instead of a proper error code
https://www.paypal.com/cgi-bin/webscr
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# fnorden.net

[![Check Links](https://github.com/freifunkh/fnorden.net/actions/workflows/links.yml/badge.svg)](https://github.com/freifunkh/fnorden.net/actions/workflows/links.yml)

This repository contains the statically delivered website of FNorden, our local Freifunk communities friends' association.

## Design decisions
Expand Down

0 comments on commit 784a60f

Please sign in to comment.