Skip to content

Update CODEOWNERs

Update CODEOWNERs #106

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@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
with:
fetch-depth: 0
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '20'
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
run_install: |
- args: [--filter, ., --filter, '{./scripts}...']
- run: git config --global user.email "typescriptbot@microsoft.com"
- 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 <typescriptbot@microsoft.com>'
commit_message: '馃 Update CODEOWNERS'
commit_user_email: 'typescriptbot@microsoft.com'
commit_user_name: 'TypeScript Bot'