Skip to content

Commit

Permalink
fix: ssh command not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Jul 17, 2023
1 parent 7d0180e commit 2fae5f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKING_DIR=${PWD}
# Initial default value
PROVIDER=${INPUT_PROVIDER:=github}
TOKEN=${INPUT_TOKEN}
SSH_PRIVATE_KEY=${INPUT_SSH_PRIVATE_KEY}
SSH_PRIVATE_KEY=${INPUT_SSH_PRIVATE_KEY:=}
ACTOR=${INPUT_ACTOR}
REPOSITORY=${INPUT_REPOSITORY}
BRANCH=${INPUT_BRANCH}
Expand All @@ -23,8 +23,8 @@ BUNDLE_PATH=${WORKING_DIR}/vendor/bundle

echo "Starting the Jekyll Deploy Action"

if [[ -z "${TOKEN}" ]]; then
echo "Please set the TOKEN environment variable."
if [[ -z "${TOKEN}" && -z "${SSH_PRIVATE_KEY}" ]]; then
echo "Please set the TOKEN or SSH_PRIVATE_KEY environment variable."
exit 1
fi

Expand All @@ -46,7 +46,7 @@ fi

# Initialize environment
echo "Initialize environment"
${SCRIPT_DIR}/script/init_environment.sh
source ${SCRIPT_DIR}/script/init_environment.sh

cd ${JEKYLL_SRC}

Expand Down

0 comments on commit 2fae5f4

Please sign in to comment.