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.
master
Nat Goodspeed 2023-11-15 09:45:10 -05:00
parent 819604d2ce
commit 6a206b1a61
1 changed files with 2 additions and 1 deletions

View File

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