Skip to content

Update CODEOWNERs

Update CODEOWNERs #47

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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: ./.github/actions/setup-for-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@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
with:
commit_author: 'TypeScript Bot <typescriptbot@microsoft.com>'
commit_message: '🤖 Update CODEOWNERS'
commit_user_email: 'typescriptbot@microsoft.com'
commit_user_name: 'TypeScript Bot'