mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-24 14:29:42 +03:00
fix: LeetCode directory writer (#1281)
This commit is contained in:
parent
1a5b31d3d1
commit
77522fdbc1
@ -33,13 +33,13 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
git checkout -b leetcode-directory-${{ github.sha }}
|
||||
git commit -m "docs: updating `leetcode/DIRECTORY.md`
|
||||
git commit -m "docs: updating `leetcode/DIRECTORY.md`"
|
||||
git push origin leetcode-directory-${{ github.sha }}:leetcode-directory-${{ github.sha }}
|
||||
- name: Creating the pull request
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ `git status --porcelain` ]]; then
|
||||
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).'
|
||||
if [[ $(git log --branches --not --remotes) ]]; then
|
||||
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).' || true
|
||||
fi
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
Loading…
Reference in New Issue
Block a user