Skip to content

Commit 7641096

Browse files
authored
Test for remote branch existence
Refs #1
1 parent 1009693 commit 7641096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/stable-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
2525
- name: Check if stable-docs branch exists
2626
run: |
27-
if ! git show-ref --heads --quiet stable-docs; then
27+
if ! git ls-remote --heads origin stable-docs | grep stable-docs; then
2828
git checkout -b stable-docs
2929
git push -u origin stable-docs
3030
fi

0 commit comments

Comments
 (0)