File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 77 - " leetcode/src/**.c"
88jobs :
99 build :
10+ if : github.repository == 'TheAlgorithms/C' # We only need this to run in our repository.
1011 runs-on : ubuntu-latest
1112 steps :
1213 - uses : actions/checkout@v3
@@ -21,17 +22,21 @@ jobs:
2122 - name : Write LeetCode DIRECTORY.md
2223 run : |
2324 python3 scripts/leetcode_directory_md.py 2>&1 | tee leetcode/DIRECTORY.md
24- - name : Commit and push changes
25- uses : stefanzweifel/git-auto-commit-action@v4
26- id : commit-push
27- with :
28- commit_message : " docs: updating `leetcode/DIRECTORY.md`"
29- branch : " leetcode-directory-${{ github.sha }}"
30- create_branch : true
31- - name : Creating and merging the PR
25+ - name : Setup Git configurations
26+ shell : bash
27+ run : |
28+ git config --global user.name github-actions[bot]
29+ git config --global user.email '[email protected] ' 30+ - name : Committing changes
31+ shell : bash
32+ run : |
33+ git checkout -b leetcode-directory-${{ github.sha }}
34+ git commit -m "docs: updating `leetcode/DIRECTORY.md`
35+ git push origin leetcode-directory-${{ github.sha }}:leetcode-directory-${{ github.sha }}
36+ - name : Creating the pull request
3237 shell : bash
33- if : steps.commit-push.outputs.changes_detected == 'true'
3438 run : |
39+ if [[ `git status --porcelain` ]]; then
3540 gh pr create --base ${GITHUB_REF##*/} --head leetcode-directory-${{ github.sha }} --title 'docs: updating `leetcode/DIRECTORY.md`' --body 'Updated LeetCode directory (see the diff. for changes).'
3641 env :
3742 GH_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 107107 * [ Queue] ( https://github.com/TheAlgorithms/C/blob/HEAD/data_structures/queue/queue.c )
108108 * [ Stack] ( https://github.com/TheAlgorithms/C/blob/HEAD/data_structures/stack.c )
109109 * Stack
110+ * [ Dynamic Stack] ( https://github.com/TheAlgorithms/C/blob/HEAD/data_structures/stack/dynamic_stack.c )
110111 * [ Main] ( https://github.com/TheAlgorithms/C/blob/HEAD/data_structures/stack/main.c )
111112 * [ Parenthesis] ( https://github.com/TheAlgorithms/C/blob/HEAD/data_structures/stack/parenthesis.c )
112113 * [ Stack] ( https://github.com/TheAlgorithms/C/blob/HEAD/data_structures/stack/stack.c )
You can’t perform that action at this time.
0 commit comments