summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-11-15 09:45:10 -0500
committerNat Goodspeed <nat@lindenlab.com>2023-11-15 09:45:10 -0500
commit6a206b1a61a983e626fd29a6f04d55eb2fe616c0 (patch)
tree635be861627357c42c3e53aefd2271b9455a3dd3
parent819604d2cee6d4527cc436bebfacddf8642635ff (diff)
SL-20546: Allow running build.sh even without GITHUB_OUTPUT set.
Default it to /dev/null, so output to $GITHUB_OUTPUT is permitted but discarded.
-rwxr-xr-xbuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 22f9e0c78a..32e6fd8ca4 100755
--- a/build.sh
+++ b/build.sh
@@ -112,7 +112,8 @@ installer_CYGWIN()
fi
}
-[[ -n "$GITHUB_OUTPUT" ]] || fatal "Need to export GITHUB_OUTPUT"
+# if someone wants to run build.sh outside the GitHub environment
+[[ -n "$GITHUB_OUTPUT" ]] || export GITHUB_OUTPUT='/dev/null'
# The following is based on the Warning for GitHub multiline output strings:
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)