sintonia/.github/workflows/housekeeping.yml

68 lines
1.8 KiB
YAML
Raw Normal View History

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'
name: Find closed references
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
- uses: ory/closed-reference-notifier@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
issueLimit: ${{ github.event.inputs.issueLimit || '5' }}
ignore: .git,/docs/releases/*,/website/versioned*
find_broken_links:
2022-03-03 12:07:16 +01:00
if: github.repository_owner == 'libretime'
name: Find broken links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check Links
id: lychee
uses: lycheeverse/lychee-action@v1.5.0
with:
args: >-
'**/*.md'
--exclude-path 'website/versioned_docs'
--require-https
--exclude-all-private
--exclude-mail
--exclude 'example\.(com|org)'
2022-02-16 09:48:01 +01:00
--exclude '\$server_name\$request_uri'
--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'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Report
if: ${{ steps.lychee.outputs.exit_code != 0 }}
uses: peter-evans/create-issue-from-file@v4
with:
issue-number: 1589
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: |
is: documentation
ci