Skip to content

Commit

Permalink
Added support for a commit message suffix
Browse files Browse the repository at this point in the history
Using the COMMIT_MESSAGE_SUFFIX env var
  • Loading branch information
rmm5t committed Dec 19, 2013
1 parent 61bce96 commit 912f90f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/middleman-gh-pages/tasks/gh-pages.rake
Expand Up @@ -60,10 +60,11 @@ end
desc "Build and publish to Github Pages"
task :publish => [:not_dirty, :prepare_git_remote_in_build_dir, :sync, :build] do
message = nil
suffix = ENV["COMMIT_MESSAGE_SUFFIX"]

cd PROJECT_ROOT do
head = `git log --pretty="%h" -n1`.strip
message = "Site updated to #{head}"
message = ["Site updated to #{head}", suffix].compact.join("\n\n")
end

cd BUILD_DIR do
Expand Down

0 comments on commit 912f90f

Please sign in to comment.