3333
3434 - name : Generate Repo Structure
3535 run : |
36- chmod +x scripts/script .sh
37- ./ base.sh '${{ github.event.inputs.exclude_patterns }}' '${{ github.event.inputs.depth }}'
38-
36+ chmod +x base .sh
37+ bash base.sh '${{ github.event.inputs.exclude_patterns }}' '${{ github.event.inputs.depth }}'
38+ shell : bash
3939 - name : Set up Python
4040 uses : actions/setup-python@v3
4141 with :
@@ -47,14 +47,23 @@ jobs:
4747 - name : Generate Mermaid Diagram using ChatGPT
4848 env :
4949 OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
50- run : python scripts/ tree_to_gpt.py
50+ run : python tree_to_gpt.py
5151
52- - name : Commit and push results
52+ - name : Commit Changes
5353 run : |
54- git config --global user.name "github-actions[bot]"
55- git config --global user.email "github-actions[bot]@users.noreply.github.com "
54+ git config --local user.email "github-actions[bot]@users.noreply.github.com "
55+ git config --local user.name "github-actions[bot]"
5656 git add REPO_STRUCTURE.md MERMAID_DIAGRAM.md
57- git commit -m "Update repository structure and Mermaid diagram"
58- git push
57+ git commit -m "[bot] Update repository structure and Mermaid diagram"
58+ shell : bash
59+
60+ - name : Create Pull Request
61+ uses : peter-evans/create-pull-request@v6
62+ with :
63+ author : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
64+ title : " Update repository structure and Mermaid diagram"
65+ branch : update-repo-structure
66+ labels : " automated-update"
67+
5968 env :
6069 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments