Skip to content

Commit 06a6b0d

Browse files
committed
Stick to last commit from a release when generating new documentation
With: `bundle exec rake "update_docs[3.9, 3-9-maintenance]"` args[:version] will be 3.9. The command will search for the latest tag that match 3.9, for example v3.9.2
1 parent 11539fe commit 06a6b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ desc "Updates the rspec.github.io docs"
6363
task :update_docs, [:version, :branch, :website_path] do |t, args|
6464
abort "You must have ag installed to generate docs" if `which ag` == ""
6565
args.with_defaults(:website_path => "../rspec.github.io")
66-
run_command "git checkout #{args[:branch]} && git pull --rebase"
66+
run_command "git fetch --tags && git checkout `git tag | grep #{args[:version]} | tail -1`"
6767
each_project :except => (UnDocumentedProjects + SemverUnlinkedProjects) do |project|
6868
doc_destination_path = "#{args[:website_path]}/source/documentation/#{args[:version]}/#{project}/"
6969
cmd = "bundle install && \

0 commit comments

Comments
 (0)