-
-
Notifications
You must be signed in to change notification settings - Fork 202
32 lines (27 loc) · 710 Bytes
/
update-readme.yml
File metadata and controls
32 lines (27 loc) · 710 Bytes
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
name: update-readme
on:
schedule:
- cron: '0 20 * * *'
push:
branches:
- 'main'
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn
- run: node ./update.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: node ./generate-readme.js
- run: |
git config user.email "github@stefanbuck.com"
git config user.name "Stefan Buck"
git add README.md data.json
git diff-index --quiet HEAD || git commit -m "Update awesome list"
- run: git push