mirror of
https://github.com/reecetech/version-increment.git
synced 2025-12-21 06:25:44 +00:00
Add GITHUB_OUTPUT override for testing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user