We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1857d8a commit 7ce016aCopy full SHA for 7ce016a
3 files changed
.github/workflows/generate-readme.yml
@@ -0,0 +1,26 @@
1
+name: Generate README
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ paths: ['data.json']
7
8
+jobs:
9
+ generate:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: write
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: '20'
18
+ - name: Generate README
19
+ run: node scripts/generate-readme.js
20
+ - name: Commit changes
21
+ run: |
22
+ git config user.name "github-actions[bot]"
23
+ git config user.email "github-actions[bot]@users.noreply.github.com"
24
+ git add README.md
25
+ git diff --staged --quiet || git commit -m "docs: regenerate README from data.json"
26
+ git push
0 commit comments