Fixed ability to generate docs (#695)

This commit is contained in:
UebelAndre 2021-06-22 13:26:07 -07:00 committed by GitHub
parent 5d1cdeba82
commit 2c35d7361f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 2 deletions

13
.github/docs-0.4.0.patch vendored Normal file
View File

@ -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

View File

@ -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"

View File

@ -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