Skip to content

fix(ci): sort releases by publication date - #23

Merged
alviss7 merged 1 commit into
mainfrom
fix/sort-releases-by-published-date
Nov 3, 2026
Merged

alviss7 merged 1 commit into
mainfrom
fix/sort-releases-by-published-date

Conversation

@alviss7

@alviss7 alviss7 commented Nov 3, 2026

Copy link
Copy Markdown
Member

GitHub sets the createdAt of a release to the date of the tagged commit.
Every release since 2026.10.24 points to the same commit, so sorting on
createdAt gives a tie and the comparison step picked 2026.10.24 instead
of the latest release. The size check then compared today's databases
with a ten day old one.

The prune step had the same sort and could delete the wrong releases.
Both now sort on publishedAt.

Refs #22

GitHub sets the createdAt of a release to the date of the tagged commit.
Every release since 2026.10.24 points to the same commit, so sorting on
createdAt gives a tie and the comparison step picked 2026.10.24 instead
of the latest release. The size check then compared today's databases
with a ten day old one.

The prune step had the same sort and could delete the wrong releases.
Both now sort on publishedAt.

Refs #22
@alviss7
alviss7 requested a review from a team as a code owner November 3, 2026 08:19
@alviss7
alviss7 merged commit d88ee51 into main Nov 3, 2026
2 checks passed
@alviss7
alviss7 deleted the fix/sort-releases-by-published-date branch November 3, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant