File tree 2 files changed +19
-8
lines changed
2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,22 @@ jobs:
18
18
- name : Add python dependencies
19
19
run : |
20
20
pip install requests
21
- - name : Write leectode DIRECTORY.md
21
+ - name : Write LeetCode DIRECTORY.md
22
22
run : |
23
23
python3 scripts/leetcode_directory_md.py 2>&1 | tee leetcode/DIRECTORY.md
24
- git config --global user.name github-actions[bot]
25
- git config --global user.email '[email protected] '
26
- - name : Update LeetCode's directory
24
+ git pull || true
25
+ - name : Commit and push changes
26
+ uses : stefanzweifel/git-auto-commit-action@v4
27
+ id : commit-push
28
+ with :
29
+ commit_message : " docs: updating `leetcode/DIRECTORY.md`"
30
+ branch : " leetcode-directory-${{ github.sha }}"
31
+ create_branch : true
32
+ - name : Creating and merging the PR
33
+ shell : bash
34
+ if : steps.commit-push.outputs.changes_detected == 'true'
27
35
run : |
28
- git add leetcode/DIRECTORY.md
29
- git commit -am "updating DIRECTORY.md" || true
30
- git push origin HEAD:$GITHUB_REF || true
36
+ 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).'
37
+ gh pr merge --admin --merge --subject 'docs: updating `leetcode/DIRECTORY.md' --delete-branch
38
+ env :
39
+ GH_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 2
2
## Audio
3
3
* [ Alaw] ( https://github.com/TheAlgorithms/C/blob/HEAD/audio/alaw.c )
4
4
5
+ ## Cipher
6
+ * [ Rot13] ( https://github.com/TheAlgorithms/C/blob/HEAD/cipher/rot13.c )
7
+
5
8
## Client Server
6
9
* [ Client] ( https://github.com/TheAlgorithms/C/blob/HEAD/client_server/client.c )
7
10
* [ Remote Command Exec Udp Client] ( https://github.com/TheAlgorithms/C/blob/HEAD/client_server/remote_command_exec_udp_client.c )
359
362
* [ Poly Add] ( https://github.com/TheAlgorithms/C/blob/HEAD/misc/poly_add.c )
360
363
* [ Postfix Evaluation] ( https://github.com/TheAlgorithms/C/blob/HEAD/misc/postfix_evaluation.c )
361
364
* [ Quartile] ( https://github.com/TheAlgorithms/C/blob/HEAD/misc/quartile.c )
362
- * [ Rot13] ( https://github.com/TheAlgorithms/C/blob/HEAD/misc/rot13.c )
363
365
* [ Rselect] ( https://github.com/TheAlgorithms/C/blob/HEAD/misc/rselect.c )
364
366
* [ Run Length Encoding] ( https://github.com/TheAlgorithms/C/blob/HEAD/misc/run_length_encoding.c )
365
367
* [ Shunting Yard] ( https://github.com/TheAlgorithms/C/blob/HEAD/misc/shunting_yard.c )
You can’t perform that action at this time.
0 commit comments