forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.07 KB
/
UpdateCodeowners.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v2
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@v5.0.0
with:
commit_author: 'TypeScript Bot <typescriptbot@microsoft.com>'
commit_message: '🤖 Update CODEOWNERS'
commit_user_email: 'typescriptbot@microsoft.com'
commit_user_name: 'TypeScript Bot'