File tree Expand file tree Collapse file tree
main/java/com/thealgorithms/datastructures/caches
test/java/com/thealgorithms/datastructures/caches Expand file tree Collapse file tree 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+ pull-requests : write
11+
12+ jobs :
13+ generate-directory :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout Repository
17+ uses : actions/checkout@v4
18+
19+ - name : Run Directory Tree Generator
20+ uses : DenizAltunkapan/directory-tree-generator@v2
21+ with :
22+ path : src
23+ extensions : .java
24+ show-extensions : false
25+
26+ - name : Commit changes
27+ run : |
28+ git config --global user.name "$GITHUB_ACTOR"
29+ git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
30+ git add DIRECTORY.md
31+ git diff --cached --quiet || git commit -m "Update DIRECTORY.md"
32+
33+ - name : Create Pull Request
34+ uses : peter-evans/create-pull-request@v7
35+ with :
36+ token : ${{ secrets.REPO_SCOPED_TOKEN }}
37+ branch : update-directory
38+ base : master
39+ title : " Update DIRECTORY.md"
40+ body : " Automatically generated update of the directory tree."
41+ commit-message : " Update DIRECTORY.md"
42+ draft : false
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments