-
-
Notifications
You must be signed in to change notification settings - Fork 21
33 lines (27 loc) · 919 Bytes
/
update-readme.yml
File metadata and controls
33 lines (27 loc) · 919 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
33
name: Data Fetch
on:
schedule:
- cron: "0 8 * * *" # Every day at 1am PDT
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
token: ${{ secrets.WORKFLOW_PUSH_BOT_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Install npm packages
run: npm install
- name: Update README with latest sponsor data
run: npm run build:readme
- name: Setup Git
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<eslint@googlegroups.com>"
- name: Save updated files
run: |
chmod +x ./tools/commit-readme.sh
./tools/commit-readme.sh