33
33
34
34
- name : Generate Repo Structure
35
35
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
39
39
- name : Set up Python
40
40
uses : actions/setup-python@v3
41
41
with :
@@ -47,14 +47,23 @@ jobs:
47
47
- name : Generate Mermaid Diagram using ChatGPT
48
48
env :
49
49
OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
50
- run : python scripts/ tree_to_gpt.py
50
+ run : python tree_to_gpt.py
51
51
52
- - name : Commit and push results
52
+ - name : Commit Changes
53
53
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]"
56
56
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
+
59
68
env :
60
69
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments