File tree Expand file tree Collapse file tree 3 files changed +32
-31
lines changed Expand file tree Collapse file tree 3 files changed +32
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Update Attributions Weekly
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ schedule :
6
+ # https://crontab.guru/#0_6_*_*_*
7
+ - cron : ' 0 6 * * *'
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - uses : actions/setup-node@v1
Original file line number Diff line number Diff line change 13
13
steps :
14
14
- uses : actions/checkout@v1
15
15
- uses : actions/setup-node@v1
16
+ with :
17
+ node-version : 12
18
+ registry-url : https://registry.npmjs.org/
16
19
- run : yarn install
17
20
env :
18
21
YARN_CHECKSUM_BEHAVIOR : ignore
21
24
- run : yarn docs-sync update-github-issues microsoft/TypeScript-Website-Localizations
22
25
env :
23
26
GITHUB_ACCESS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
+
28
+ # Updates the attribution.json file in git
29
+ - uses : OSS-Docs-Tools/create-attribution-json@master
30
+ with :
31
+ glob : " docs/documentation/*.md"
32
+
33
+ - name : Configure git and update attribution.json
34
+ run : |
35
+ git config user.email "[email protected] "
36
+ git config user.name "GitHub Bot"
37
+ git add -f attribution.json
38
+ if git commit -m "Update attribution.json"; then
39
+ git push
40
+ fi
You can’t perform that action at this time.
0 commit comments