Skip to content

Update CODEOWNERs

Update CODEOWNERs #28

name: Update CODEOWNERs
# For testing
# on: push
# For production
on:
schedule:
# https://crontab.guru/#5_8_*_*_1
- cron: '5 8 * * 1'
workflow_dispatch:
permissions:
contents: read
jobs:
update:
permissions:
contents: write # for Git to git push
runs-on: ubuntu-latest
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
fetch-depth: 0
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '20'
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
run_install: |
- args: [--filter, ., --filter, '{./scripts}...']
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "TypeScript Bot"
- run: pnpm run update-codeowners
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
with:
commit_author: 'TypeScript Bot <[email protected]>'
commit_message: '🤖 Update CODEOWNERS'
commit_user_email: '[email protected]'
commit_user_name: 'TypeScript Bot'