Skip to content

Commit 6869c68

Browse files
authored
Merge pull request #61 from ntkme/warning-gemfile
Print a warning if Gemfile's dependencies are not satisfied
2 parents cd94e91 + 1ad3785 commit 6869c68

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ DESTINATION_DIRECTORY=${GITHUB_WORKSPACE}/$INPUT_DESTINATION
1313
PAGES_GEM_HOME=$BUNDLE_APP_CONFIG
1414
GITHUB_PAGES=$PAGES_GEM_HOME/bin/github-pages
1515

16+
# Check if Gemfile's dependencies are satisfied or print a warning
17+
if test -e "$SOURCE_DIRECTORY/Gemfile" && ! bundle check --dry-run --gemfile "$SOURCE_DIRECTORY/Gemfile" >/dev/null 2>&1; then
18+
echo "::warning:: github-pages can't satisfy your Gemfile's dependencies."
19+
fi
20+
1621
# Set environment variables required by supported plugins
1722
export JEKYLL_ENV="production"
1823
export JEKYLL_GITHUB_TOKEN=$INPUT_TOKEN

0 commit comments

Comments
 (0)