Skip to content

Commit cc062a6

Browse files
authored
Use latest release (#29806)
1 parent a05d921 commit cc062a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/bump_versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
'integrations-core'
3030
]
3131
const versions = await Promise.all(clients.map(async (repo) => {
32-
const releases = await github.rest.repos.listReleases({
32+
const release = await github.rest.repos.getLatestRelease({
3333
owner: 'DataDog',
3434
repo: repo
3535
})
36-
return {client: repo, version: releases.data[0]["tag_name"]}
36+
return {client: repo, version: release.data["tag_name"]}
3737
}))
3838
console.log(versions)
3939
return JSON.stringify(versions, null, 2)

0 commit comments

Comments
 (0)