File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -18,22 +18,10 @@ jobs:
18
18
- name : Add python dependencies
19
19
run : |
20
20
pip install requests
21
- - name : Write LeetCode DIRECTORY.md
22
- run : |
23
- python3 scripts/leetcode_directory_md.py 2>&1 | tee leetcode/DIRECTORY.md
24
- git pull || true
25
21
- name : Commit and push changes
26
22
uses : stefanzweifel/git-auto-commit-action@v4
27
23
id : commit-push
28
24
with :
29
25
commit_message : ' docs: updating `leetcode/DIRECTORY.md`'
30
26
branch : ' leetcode-directory-${{ github.sha }}'
31
27
create_branch : true
32
- - name : Creating and merging the PR
33
- shell : bash
34
- if : steps.commit-push.outputs.changes_detected == 'true'
35
- run : |
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 }}
You can’t perform that action at this time.
0 commit comments