Skip to content

Commit 079a161

Browse files
committed
feat: update the yml file for leetcode dir actions
1 parent 06f5713 commit 079a161

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

.github/workflows/leetcode_directory_writer.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)