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