Skip to content

Commit fb6cc65

Browse files
committed
feat: ignore token or ssh private key in test provider
1 parent d2d9df7 commit fb6cc65

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

entrypoint.sh

+7-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ BUNDLE_PATH=${WORKING_DIR}/vendor/bundle
2424

2525
echo "Starting the Jekyll Deploy Action"
2626

27-
if [[ -z "${TOKEN}" && -z "${SSH_PRIVATE_KEY}" ]]; then
28-
echo "Please set the TOKEN or SSH_PRIVATE_KEY environment variable."
29-
exit 1
30-
fi
27+
if [[ "${PROVIDER}" != "test" ]]; then
28+
# Check if the token or SSH private key is set
29+
if [[ -z "${TOKEN}" && -z "${SSH_PRIVATE_KEY}" ]]; then
30+
echo "Please set the TOKEN or SSH_PRIVATE_KEY environment variable."
31+
exit 1
32+
fi
33+
if
3134

3235
# Check parameters and assign default values
3336
if [[ "${PROVIDER}" == "github" ]]; then

0 commit comments

Comments
 (0)