Skip to content

Commit f366dc8

Browse files
committed
Add attribution
1 parent 47e27a4 commit f366dc8

File tree

3 files changed

+32
-31
lines changed

3 files changed

+32
-31
lines changed

.github/workflows/daily-contributions.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

.github/workflows/weekly.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v1
1515
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 12
18+
registry-url: https://registry.npmjs.org/
1619
- run: yarn install
1720
env:
1821
YARN_CHECKSUM_BEHAVIOR: ignore
@@ -21,3 +24,17 @@ jobs:
2124
- run: yarn docs-sync update-github-issues microsoft/TypeScript-Website-Localizations
2225
env:
2326
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

0 commit comments

Comments
 (0)