Fixed ability to generate docs (#695)
This commit is contained in:
parent
5d1cdeba82
commit
2c35d7361f
|
@ -0,0 +1,13 @@
|
|||
diff --git a/docs/BUILD.bazel b/docs/BUILD.bazel
|
||||
index 2bdbf6e..418dd13 100644
|
||||
--- a/docs/BUILD.bazel
|
||||
+++ b/docs/BUILD.bazel
|
||||
@@ -97,7 +97,7 @@ set -euo pipefail
|
||||
short_commit="$${SHORT_COMMIT}"
|
||||
commit="$${COMMIT}"
|
||||
release="$${RELEASE}"
|
||||
-if [[ -n "\\$${RELEASE}" ]]; then
|
||||
+if [[ -n "\\$${RELEASE:-}" ]]; then
|
||||
release="\\$${RELEASE}"
|
||||
fi
|
||||
mkdir -p \\$${BUILD_WORKSPACE_DIRECTORY}/src
|
|
@ -30,7 +30,7 @@ jobs:
|
|||
mkdir -p ${{ github.workspace }}/.github
|
||||
curl https://raw.githubusercontent.com/bazelbuild/rules_foreign_cc/main/.github/docs-${{ matrix.ref }}.patch > ${{ github.workspace }}/.github/docs-${{ matrix.ref }}.patch
|
||||
git apply ${{ github.workspace }}/.github/docs-${{ matrix.ref }}.patch
|
||||
if: ${{ matrix.ref == '0.3.0' || matrix.ref == '0.2.0' || matrix.ref == '0.1.0' }}
|
||||
if: ${{ matrix.ref == '0.4.0' || matrix.ref == '0.3.0' || matrix.ref == '0.2.0' || matrix.ref == '0.1.0' }}
|
||||
- name: Install bazelisk
|
||||
run: |
|
||||
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.9.0/bazelisk-linux-amd64"
|
||||
|
|
|
@ -97,7 +97,7 @@ set -euo pipefail
|
|||
short_commit="$${SHORT_COMMIT}"
|
||||
commit="$${COMMIT}"
|
||||
release="$${RELEASE}"
|
||||
if [[ -n "\\$${RELEASE}" ]]; then
|
||||
if [[ -n "\\$${RELEASE:-}" ]]; then
|
||||
release="\\$${RELEASE}"
|
||||
fi
|
||||
mkdir -p \\$${BUILD_WORKSPACE_DIRECTORY}/src
|
||||
|
|
Loading…
Reference in New Issue