Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 6 additions & 27 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,13 @@
name: Data Fetch
name: update-readme

on:
schedule:
- cron: "0 8 * * *" # Every day at 1am PDT
- cron: "0 8 * * *" # Runs every day at 08:00 AM UTC

workflow_dispatch:

jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v5
with:
token: ${{ secrets.WORKFLOW_PUSH_BOT_TOKEN }}

- name: Set up Node.js
uses: actions/setup-node@v5

- name: Install npm packages
run: npm install --force

- name: Update README with latest team and 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
uses: eslint/workflows/.github/workflows/update-readme.yml@main
secrets:
workflow_push_bot_token: ${{ secrets.WORKFLOW_PUSH_BOT_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ _test.js
.eslint-release-info.json
yarn.lock
package-lock.json

# Automatically generated files by GitHub Actions workflow
tools/update-readme.js
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"scripts": {
"test": "npm test --workspaces --if-present",
"build": "npm run build --workspaces --if-present",
"build:readme": "node tools/update-readme.js",
"lint": "eslint .",
"lint:fix": "eslint --fix ."
"lint": "eslint",
"lint:fix": "eslint --fix"
},
"workspaces": [
"packages/*"
Expand All @@ -27,7 +26,6 @@
"eslint-config-eslint": "^13.0.0",
"eslint-plugin-chai-friendly": "^1.0.0",
"globals": "^16.0.0",
"got": "^14.4.1",
"lint-staged": "^15.2.0",
"mocha": "^11.1.0",
"yorkie": "^2.0.0"
Expand Down
18 changes: 0 additions & 18 deletions tools/commit-readme.sh

This file was deleted.

60 changes: 0 additions & 60 deletions tools/update-readme.js

This file was deleted.

Loading