Skip to content

Commit 0987320

Browse files
Added github actions to update index.md per porject added.
1 parent 30edf14 commit 0987320

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/update-index.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
branches:
10+
- main
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+
run: |
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

Comments
 (0)