Fix docs cron (#5612)

--branches='*' seems to only include local branches not branches in
the remote. It looks like --branches='*' --remotes='*' would work but
--all seems simpler. I struggled to find any docs on this but this
matched what I got when testing locally.

changelog_begin
changelog_end
This commit is contained in:
Moritz Kiefer 2020-04-17 20:59:49 +02:00 committed by GitHub
parent ec0973cc5a
commit 2ea4fbd850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,7 @@ build_docs_folder path versions latest = do
find_commit_for_version :: String -> IO String
find_commit_for_version version = do
release_commits <- lines <$> shell "git log --format=%H --branches='*' -- LATEST"
release_commits <- lines <$> shell "git log --format=%H --all -- LATEST"
ver_sha <- init <$> (shell $ "git rev-parse v" <> version)
let expected = ver_sha <> " " <> version
matching <- Maybe.catMaybes <$> Traversable.for release_commits (\sha -> do