Skip to content

Update CODEOWNERs

Update CODEOWNERs #31

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:
runs-on:
- self-hosted
- 1ES.Pool=MC-Runner-1ES-Linux
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "TS Bot"
- run: npm install
- run: npm run update-codeowners
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}