2022-02-09 11:41:07 +01:00
|
|
|
name: Housekeeping
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
issueLimit:
|
|
|
|
description: Max. number of issues to create
|
|
|
|
required: true
|
|
|
|
default: "5"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
find_closed_references:
|
2022-03-03 12:07:16 +01:00
|
|
|
if: github.repository_owner == 'libretime'
|
2022-02-09 11:41:07 +01:00
|
|
|
name: Find closed references
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-07 10:22:29 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-09 11:41:07 +01:00
|
|
|
|
2022-02-28 10:17:50 +01:00
|
|
|
- uses: actions/setup-node@v3
|
2022-02-09 11:41:07 +01:00
|
|
|
with:
|
|
|
|
node-version: "16"
|
|
|
|
|
|
|
|
- uses: ory/closed-reference-notifier@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
issueLimit: ${{ github.event.inputs.issueLimit || '5' }}
|
2022-04-11 09:11:07 +02:00
|
|
|
ignore: .git,/docs/releases/*,/website/versioned*
|
2022-02-09 11:41:07 +01:00
|
|
|
|
|
|
|
find_broken_links:
|
2022-03-03 12:07:16 +01:00
|
|
|
if: github.repository_owner == 'libretime'
|
2022-02-09 11:41:07 +01:00
|
|
|
name: Find broken links
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-07 10:22:29 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-09 11:41:07 +01:00
|
|
|
|
|
|
|
- name: Check Links
|
|
|
|
id: lychee
|
2022-05-31 06:41:15 +02:00
|
|
|
uses: lycheeverse/lychee-action@v1.5.0
|
2022-02-09 11:41:07 +01:00
|
|
|
with:
|
|
|
|
args: >-
|
|
|
|
'**/*.md'
|
2022-06-16 15:17:39 +02:00
|
|
|
--exclude-path 'website/versioned_docs'
|
2022-02-09 11:41:07 +01:00
|
|
|
--require-https
|
|
|
|
--exclude-all-private
|
|
|
|
--exclude-mail
|
|
|
|
--exclude 'example\.(com|org)'
|
2022-02-16 09:48:01 +01:00
|
|
|
--exclude '\$server_name\$request_uri'
|
2022-06-16 23:39:48 +02:00
|
|
|
--exclude '%7Bvars.version%7D'
|
2022-02-16 09:48:01 +01:00
|
|
|
--exclude 'https://dir.xiph.org/cgi-bin/yp-cgi'
|
|
|
|
--exclude 'https://radio.indymedia.org/cgi-bin/yp-cgi'
|
2022-06-16 23:40:20 +02:00
|
|
|
--exclude 'https://www.ascap.com'
|
2022-02-09 11:41:07 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Create Report
|
|
|
|
if: ${{ steps.lychee.outputs.exit_code != 0 }}
|
2022-03-28 11:22:04 +02:00
|
|
|
uses: peter-evans/create-issue-from-file@v4
|
2022-02-09 11:41:07 +01:00
|
|
|
with:
|
|
|
|
issue-number: 1589
|
|
|
|
title: Link Checker Report
|
|
|
|
content-filepath: ./lychee/out.md
|
|
|
|
labels: |
|
|
|
|
is: documentation
|
|
|
|
ci
|