Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreytse committed Jul 17, 2023
1 parent 7d0180e commit 03a24b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ jobs:
- uses: ./
with:
provider: 'github'
token: ${{ secrets.GITHUB_TOKEN }}
# token: ${{ secrets.GITHUB_TOKEN }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
jekyll_src: './test_site'
10 changes: 5 additions & 5 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 All @@ -71,7 +71,7 @@ if [[ -f "${GEMFILE_LOCK_DIR}/Gemfile.lock" ]]; then
fi

echo "Initial comptible bundler"
${SCRIPT_DIR}/script/cleanup_bundler.sh
source ${SCRIPT_DIR}/script/cleanup_bundler.sh
gem install bundler -v "${BUNDLER_VER}"

CLEANUP_BUNDLER_CACHE_DONE=false
Expand Down

0 comments on commit 03a24b7

Please sign in to comment.