Skip to content

Commit 3436283

Browse files
Update directory generator workflow and auto-commit logic
1 parent 13d8a28 commit 3436283

File tree

2 files changed

+32
-92
lines changed

2 files changed

+32
-92
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Generate Directory Markdown
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
generate-directory:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
17+
18+
- name: Run Directory Tree Generator
19+
uses: DenizAltunkapan/directory-tree-generator@v1
20+
with:
21+
path: src
22+
extensions: .
23+
24+
- name: Commit and Push DIRECTORY.md
25+
run: |
26+
cat DIRECTORY.md
27+
git config --global user.name "$GITHUB_ACTOR"
28+
git config --global user.email "[email protected]"
29+
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
30+
git add DIRECTORY.md
31+
git commit -am "Update directory" || true
32+
git push origin HEAD:$GITHUB_REF

.github/workflows/update_directory.yml

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

0 commit comments

Comments
 (0)