Skip to content

Commit 88b0c34

Browse files
authored
ci: centralize update-readme workflow (#275)
1 parent b8e4f36 commit 88b0c34

File tree

5 files changed

+12
-110
lines changed

5 files changed

+12
-110
lines changed
Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,13 @@
1-
name: Data Fetch
1+
name: update-readme
22

33
on:
44
schedule:
5-
- cron: "0 8 * * *" # Every day at 1am PDT
5+
- cron: "0 8 * * *" # Runs every day at 08:00 AM UTC
6+
67
workflow_dispatch:
78

89
jobs:
9-
build:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Check out repo
13-
uses: actions/checkout@v5
14-
with:
15-
token: ${{ secrets.WORKFLOW_PUSH_BOT_TOKEN }}
16-
17-
- name: Set up Node.js
18-
uses: actions/setup-node@v5
19-
20-
- name: Install npm packages
21-
run: npm install --force
22-
23-
- name: Update README with latest team and sponsor data
24-
run: npm run build:readme
25-
26-
- name: Setup Git
27-
run: |
28-
git config user.name "GitHub Actions Bot"
29-
git config user.email "<[email protected]>"
30-
31-
- name: Save updated files
32-
run: |
33-
chmod +x ./tools/commit-readme.sh
34-
./tools/commit-readme.sh
10+
update-readme:
11+
uses: eslint/workflows/.github/workflows/update-readme.yml@main
12+
secrets:
13+
workflow_push_bot_token: ${{ secrets.WORKFLOW_PUSH_BOT_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,6 @@ yarn.lock
139139
.vscode
140140
*.code-workspace
141141
bun.lockb
142+
143+
# Automatically generated files by GitHub Actions workflow
144+
tools/update-readme.js

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
"scripts": {
77
"test": "npm test --workspaces --if-present",
88
"build": "node scripts/build.js",
9-
"build:readme": "node tools/update-readme.js",
109
"build:new-pkg": "node tools/new-pkg.js",
1110
"prepare": "npm run build",
12-
"lint": "eslint .",
13-
"lint:fix": "eslint --fix .",
11+
"lint": "eslint",
12+
"lint:fix": "eslint --fix",
1413
"fmt": "prettier --write .",
1514
"fmt:check": "prettier --check .",
1615
"test:jsr": "npm run test:jsr --workspaces --if-present",
@@ -38,7 +37,6 @@
3837
"c8": "^10.1.3",
3938
"eslint": "^9.35.0",
4039
"eslint-config-eslint": "^13.0.0",
41-
"got": "^14.4.1",
4240
"lint-staged": "^15.2.0",
4341
"mocha": "^11.5.0",
4442
"prettier": "^3.4.1",

tools/commit-readme.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

tools/update-readme.js

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)