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:
1818 - name : Add python dependencies
1919 run : |
2020 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
2521 - name : Commit and push changes
2622 uses : stefanzweifel/git-auto-commit-action@v4
2723 id : commit-push
2824 with :
2925 commit_message : ' docs: updating `leetcode/DIRECTORY.md`'
3026 branch : ' leetcode-directory-${{ github.sha }}'
3127 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