Skip to content

Commit

Permalink
Merge pull request #61 from ntkme/warning-gemfile
Browse files Browse the repository at this point in the history
Print a warning if Gemfile's dependencies are not satisfied
  • Loading branch information
yoannchaudet authored Dec 28, 2022
2 parents cd94e91 + 1ad3785 commit 6869c68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ DESTINATION_DIRECTORY=${GITHUB_WORKSPACE}/$INPUT_DESTINATION
PAGES_GEM_HOME=$BUNDLE_APP_CONFIG
GITHUB_PAGES=$PAGES_GEM_HOME/bin/github-pages

# Check if Gemfile's dependencies are satisfied or print a warning
if test -e "$SOURCE_DIRECTORY/Gemfile" && ! bundle check --dry-run --gemfile "$SOURCE_DIRECTORY/Gemfile" >/dev/null 2>&1; then
echo "::warning:: github-pages can't satisfy your Gemfile's dependencies."
fi

# Set environment variables required by supported plugins
export JEKYLL_ENV="production"
export JEKYLL_GITHUB_TOKEN=$INPUT_TOKEN
Expand Down

0 comments on commit 6869c68

Please sign in to comment.