diff --git a/tests/suite/test_publish_w_tag.sh b/tests/suite/test_publish_w_tag.sh index b857c97..67c1bec 100644 --- a/tests/suite/test_publish_w_tag.sh +++ b/tests/suite/test_publish_w_tag.sh @@ -17,7 +17,6 @@ test_with_tag() { local test_name="Test with tag" # Create expectations & set env variables that will be passed in for Docker command - local WITH_VAR_GITHUB_TOKEN="ghp_1x2x3x4x5x6x7x8x9x0x1x2x3x4x5x6x7x8x9x0" local WITH_VAR_TAG="v1.0.0" local WITH_VAR_ROOT_OPTIONS="--noop -vv" local expected_psr_cmd=".*/bin/semantic-release $WITH_VAR_ROOT_OPTIONS publish --tag $WITH_VAR_TAG" diff --git a/tests/suite/test_publish_wo_tag.sh b/tests/suite/test_publish_wo_tag.sh index 55e2d60..64b1593 100644 --- a/tests/suite/test_publish_wo_tag.sh +++ b/tests/suite/test_publish_wo_tag.sh @@ -17,7 +17,6 @@ test_without_tag() { local test_name="Test without tag" # Create expectations & set env variables that will be passed in for Docker command - local WITH_VAR_GITHUB_TOKEN="ghp_1x2x3x4x5x6x7x8x9x0x1x2x3x4x5x6x7x8x9x0" local WITH_VAR_ROOT_OPTIONS="--noop -vv" local expected_psr_cmd=".*/bin/semantic-release $WITH_VAR_ROOT_OPTIONS publish" diff --git a/tests/utils.sh b/tests/utils.sh index 8a0f31a..80590e1 100644 --- a/tests/utils.sh +++ b/tests/utils.sh @@ -25,6 +25,7 @@ run_test() { local test_name="$1" # Set Defaults based on action.yml + [ -z "$WITH_VAR_GITHUB_TOKEN" ] && local WITH_VAR_GITHUB_TOKEN="ghp_1x2x3x4x5x6x7x8x9x0x1x2x3x4x5x6x7x8x9x0" [ -z "$WITH_VAR_DIRECTORY" ] && local WITH_VAR_DIRECTORY="." [ -z "$WITH_VAR_ROOT_OPTIONS" ] && local WITH_VAR_ROOT_OPTIONS="-v"