Skip to content

Commit caafaae

Browse files
committed
Adds attribution workflow
1 parent 5ec63b5 commit caafaae

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update Attributions Weekly
2+
3+
on:
4+
schedule:
5+
# https://crontab.guru/#0_6_*_*_*
6+
- cron: '0 6 * * *'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: 12
17+
registry-url: https://registry.npmjs.org/
18+
19+
# Updates the attribution.json file in git
20+
- uses: OSS-Docs-Tools/create-attribution-json@master
21+
with:
22+
glob: "docs/documentation/*.md"
23+
24+
- name: Configure git and update attribution.json
25+
run: |
26+
git config user.email "[email protected]"
27+
git config user.name "GitHub Bot"
28+
git add -f attribution.json
29+
if git commit -m "Update attribution.json"; then
30+
git push
31+
fi

0 commit comments

Comments
 (0)