Files
tldr/.github/workflows/monthly-check.yml
T
dependabot[bot] f16a3a10d6 build(deps): bump actions/checkout from 6.0.3 to 7.0.0 (#22936)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.3 to 7.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/df4cb1c069e1874edd31b4311f1884172cec0e10...9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-23 17:22:59 +03: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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
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 }}