mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-05 03:56:26 +03:00
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:
parent
ec0973cc5a
commit
2ea4fbd850
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user