Skip to content

Commit

Permalink
feat: ignore token or ssh private key in test provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Nov 5, 2024
1 parent d2d9df7 commit ef9c477
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ BUNDLE_PATH=${WORKING_DIR}/vendor/bundle

echo "Starting the Jekyll Deploy Action"

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

# Check parameters and assign default values
Expand Down

0 comments on commit ef9c477

Please sign in to comment.