We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30edf14 commit 0987320Copy full SHA for 0987320
.github/workflows/update-index.yml
@@ -0,0 +1,35 @@
1
+name: Auto Update INDEX.md
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ types: [closed]
9
10
11
12
+jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
16
+ steps:
17
+ - name: Checkout repository
18
+ uses: actions/checkout@v4
19
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v5
22
+ with:
23
+ python-version: "3.x"
24
25
+ - name: Run index generator
26
+ run: |
27
+ python update_index.py
28
29
+ - name: Commit & Push changes
30
31
+ git config user.name "GitHub Action"
32
+ git config user.email "actions@github.com"
33
+ git add INDEX.md
34
+ git diff --quiet && echo "No changes to commit" || git commit -m "🤖 Auto update INDEX.md"
35
+ git push
0 commit comments