Skip to content

Commit 771c015

Browse files
committed
chore: fix branch comparison
1 parent bebfbcf commit 771c015

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/docs-build-update.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Build & update docs
32

43
on:
@@ -46,7 +45,7 @@ jobs:
4645
4746
- name: Build docs
4847
run: |
49-
make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR="${CURBRANCH:-html}" html
48+
make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR="${CURBRANCH:-html}" html
5049
5150
- name: Push created tag to gh-pages
5251
if: startsWith(github.ref, 'refs/tags/')
@@ -70,7 +69,7 @@ jobs:
7069
- name: Push "main" docs to gh-pages after a PR is merged
7170
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
7271
run: |
73-
if [[ "${CURBRANCH}" != "master" -a "${CURBRANCH}" != "main" ]]; then
72+
if [[ "${CURBRANCH}" != "master" && "${CURBRANCH}" != "main" ]]; then
7473
echo "$CURBRANCH is not the default development branch"
7574
exit 1
7675
fi

0 commit comments

Comments
 (0)