Skip to content

Commit 1009693

Browse files
authored
Alternative pattern for detecting if branch exists
Refs #1
1 parent 03344fb commit 1009693

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 rev-parse --verify stable-docs > /dev/null 2>&1; then
27+
if ! git show-ref --heads --quiet stable-docs; then
2828
git checkout -b stable-docs
2929
git push -u origin stable-docs
3030
fi

0 commit comments

Comments
 (0)