File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ jobs:
33
33
shell : bash
34
34
run : |
35
35
git checkout -b leetcode-directory-${{ github.sha }}
36
- git commit -m "docs: updating `leetcode/DIRECTORY.md`
36
+ git commit -m "docs: updating `leetcode/DIRECTORY.md`"
37
37
git push origin leetcode-directory-${{ github.sha }}:leetcode-directory-${{ github.sha }}
38
38
- name : Creating the pull request
39
39
shell : bash
40
40
run : |
41
- if [[ ` git status --porcelain` ]]; then
42
- 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).'
41
+ if [[ $( git log --branches --not --remotes) ]]; then
42
+ 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
43
43
fi
44
44
env :
45
45
GH_TOKEN : ${{ github.token }}
You can’t perform that action at this time.
0 commit comments