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

Commit

Permalink
Fails build when unable to grab the latest date.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnedquinn committed Nov 16, 2023
1 parent 8655cba commit 9d93fe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Attempt to grab the date of the latest commit. If unable to, we use the current date.
# Attempt to grab the date of the latest commit. If unable to, fail.
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")
raise "Failed to get the date from the latest commit. Do you have access to the Git log?"
end
params = "--attribute revdate='#{date_string}'"

Expand Down

0 comments on commit 9d93fe1

Please sign in to comment.