Files
tldr/.github/workflows/monthly-check.yml
T
dependabot[bot] 7f72f01943 build(deps): bump lycheeverse/lychee-action from 2.7.0 to 2.8.0 (#21316)
Bumps [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/lycheeverse/lychee-action/releases)
- [Commits](https://github.com/lycheeverse/lychee-action/compare/a8c4c7cb88f0c7386610c35eb25108e448569cb0...8646ba30535128ac92d33dfc9133794bfdd9b411)

---
updated-dependencies:
- dependency-name: lycheeverse/lychee-action
  dependency-version: 2.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-02 11:36:29 +01:00

61 lines
1.9 KiB
YAML

name: Monthly check GitHub usernames
on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *"
permissions:
contents: read
issues: write
jobs:
check-usernames:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- run: |
cat .github/CODEOWNERS | grep -o "@[a-zA-Z0-9_-]\+" | sort -u | sed 's/@/https:\/\/api.github.com\/users\//' > usernames.txt
cat MAINTAINERS.md | grep -o "\*\*.*@[a-zA-Z0-9_-]\+.*\*\*" | grep -o "@[a-zA-Z0-9_-]\+" | sort -u | sed 's/@/https:\/\/api.github.com\/users\//' >> usernames.txt
sort -u usernames.txt -o usernames.txt
- name: Lychee URL checker
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
id: lychee
continue-on-error: true
with:
args: >-
--verbose
--no-progress
--max-concurrency 25
usernames.txt
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Find the last report issue open
uses: micalevisk/last-issue-action@0d40124cc99ac8601c2516007f0c98ef3d27537b # v2.3.0
id: last-issue
with:
state: open
labels: check usernames
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update last report open issue created
if: steps.lychee.outcome == 'failure'
uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6.0.0
with:
title: GitHub usernames with errors
content-filepath: lychee/out.md
issue-number: ${{ steps.last-issue.outputs.issue-number }}
labels: check usernames
- name: Close last report open issue
if: ${{ steps.lychee.outcome == 'success' && steps.last-issue.outputs.has-found == 'true' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh issue close ${{ steps.last-issue.outputs.issue-number }}