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"
|
|
|
|
|
2023-03-04 16:00:30 +01:00
|
|
|
permissions:
|
|
|
|
issues: write
|
|
|
|
|
2022-02-09 11:41:07 +01:00
|
|
|
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:
|
2023-09-24 22:14:44 +02:00
|
|
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
|
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-12-19 16:41:01 +01:00
|
|
|
ignore: .git,/docs/releases/*,CHANGELOG.md
|
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:
|
2023-09-24 22:14:44 +02:00
|
|
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
|
2022-02-09 11:41:07 +01:00
|
|
|
|
2022-09-02 09:22:42 +02:00
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: .lycheecache
|
|
|
|
key: housekeeping-find-broken-links-${{ github.sha }}
|
|
|
|
restore-keys: housekeeping-find-broken-links-
|
|
|
|
|
2022-02-09 11:41:07 +01:00
|
|
|
- name: Check Links
|
|
|
|
id: lychee
|
2023-05-15 09:58:52 +02:00
|
|
|
uses: lycheeverse/lychee-action@v1.8.0
|
2022-02-09 11:41:07 +01:00
|
|
|
with:
|
|
|
|
args: >-
|
|
|
|
'**/*.md'
|
|
|
|
--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'
|
2023-03-02 14:01:07 +01:00
|
|
|
--exclude 'https://www.youtube-nocookie.com'
|
2022-09-17 11:41:57 +02:00
|
|
|
--exclude 'github\.com/libretime/libretime/(issues|pulls)'
|
2022-09-02 09:22:42 +02:00
|
|
|
--cache
|
|
|
|
--max-cache-age 2d
|
2022-06-16 23:42:13 +02:00
|
|
|
fail: true
|
2022-02-09 11:41:07 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-03-04 16:00:30 +01:00
|
|
|
|
|
|
|
find_stale_issues:
|
|
|
|
if: github.repository_owner == 'libretime'
|
|
|
|
name: Find stale issues
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-03-23 09:00:23 +01:00
|
|
|
- uses: actions/stale@v8
|
2023-03-04 16:00:30 +01:00
|
|
|
with:
|
|
|
|
stale-issue-message: >
|
|
|
|
This issue has been automatically marked as stale because it has not had
|
|
|
|
activity in the last 5 months. It will be closed if no activity occurs in
|
|
|
|
the next month.
|
|
|
|
|
|
|
|
Please chat to us on the [forum](https://discourse.libretime.org/) or
|
2023-05-30 11:49:37 +02:00
|
|
|
ask for help on [#libretime:matrix.org](https://matrix.to/#/#libretime:matrix.org)
|
|
|
|
if you have any questions or need further support with getting this issue resolved.
|
2023-03-04 16:00:30 +01:00
|
|
|
|
|
|
|
You may also label an issue as *pinned* if you would like to make sure
|
|
|
|
that it does not get closed by this bot.
|
|
|
|
close-issue-message: >
|
|
|
|
This issue has been automatically closed after is was marked as stale and
|
|
|
|
did not receive any further inputs.
|
|
|
|
|
|
|
|
Feel free to let us know on the [forum](https://discourse.libretime.org/) or
|
2023-05-30 11:49:37 +02:00
|
|
|
ask for help on [#libretime:matrix.org](https://matrix.to/#/#libretime:matrix.org)
|
|
|
|
if you feel this issue should not have been closed.
|
2023-03-04 16:00:30 +01:00
|
|
|
|
|
|
|
Thank you for your contributions.
|
|
|
|
days-before-issue-stale: 150
|
|
|
|
days-before-issue-close: 30
|
|
|
|
stale-issue-label: "status: stalled"
|
2023-04-26 13:33:51 +02:00
|
|
|
exempt-issue-labels: "status: pinned,status: maybe later,security,is: feature-request"
|
2023-03-04 16:00:30 +01:00
|
|
|
exempt-issue-assignees: true
|
|
|
|
exempt-issue-milestones: true
|