Skip to content

Commit f7bef52

Browse files
committed
script/update-docs: allow building RC tags
To test docs for release candidates, allow REBUILD_DOC to be a `-rc*` tag. Signed-off-by: Toon Claes <[email protected]>
1 parent 5494011 commit f7bef52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/update-docs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ def local_index_doc(index_fun)
643643
if gettags
644644
# find all tags
645645
tags = `git tag -l --sort=version:refname 'v[12]*'`.strip.split("\n")
646-
tags = tags.grep(/v\d([.\d])+$/) # just get release tags
646+
tags = tags.grep(/v\d([.\d])+(-rc\d)?$/) # just get release and RC tags
647647
if tagname
648648
tags = tags.select { |t| t == tagname }
649649
end

0 commit comments

Comments
 (0)