Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Updates how we retrieve the current date for publication
Browse files Browse the repository at this point in the history
  • Loading branch information
johnedquinn committed Nov 16, 2023
1 parent 8d4bf1a commit 8655cba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
date_string = Time.now.strftime("%Y-%m-%d")
# Attempt to grab the date of the latest commit. If unable to, we use the current date.
date_string = `git log -1 --pretty='format:%cd' --date=format:'%Y-%m-%d'`.chomp
if date_string.empty?
date_string = Time.now.strftime("%Y-%m-%d")
end
params = "--attribute revdate='#{date_string}'"

image_files = Rake::FileList.new("src/images/*.png", "src/images/*.svg") do |fl|
Expand Down

0 comments on commit 8655cba

Please sign in to comment.