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 Oct 28, 2024
1 parent d2d9df7 commit fb6cc65
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ 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
fi
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
if

This comment has been minimized.

Copy link
@longavailable

longavailable Nov 5, 2024

Hi, @jeffreytse. Is this a typo?if or fi

I meet an error of /entrypoint.sh: line 161: syntax error: unexpected end of file after this update.
https://github.com/longavailable/longavailable.github.io/actions/runs/11549229405/job/32141914045

This comment has been minimized.

Copy link
@jeffreytse

jeffreytse Nov 5, 2024

Author Owner

Thanks for your reminding. : )


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

0 comments on commit fb6cc65

Please sign in to comment.