Add GITHUB_OUTPUT override for testing

This commit is contained in:
Phil Jay
2022-10-19 08:51:07 +11:00
parent 5d4fc14ad5
commit c1893b945a

View File

@@ -32,3 +32,10 @@ if [[ "$(uname)" == "Darwin" ]] ; then
exit 9
fi
fi
##==----------------------------------------------------------------------------
## Non GitHub compatibility - for testing both locally and in BATS
if [[ -z "${GITHUB_OUTPUT:-}" || -n "${BATS_VERSION:-}" ]] ; then
export GITHUB_OUTPUT="/dev/stdout"
fi