File tree Expand file tree Collapse file tree 2 files changed +32
-92
lines changed Expand file tree Collapse file tree 2 files changed +32
-92
lines changed Original file line number Diff line number Diff line change
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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments