Christoph Reiter
42b02362e1
Use ruff to upgrade code
2025-08-26 22:05:51 +02:00
Christoph Reiter
1f1fabade2
clean-assets: only re-create releases if there are many assets
...
re-creating causes notifications for users. While users can disable them
let's just limit it to larger rebuilds, like the Python rebuilds
Fixes #77
2023-08-01 08:07:23 +02:00
Christoph Reiter
4db4e22d09
clean-assets: delete release in case all assets need to be deleted
...
In case a release has hundreds of files that need to be deleted this
requires quite a bit of time and also works against the API rate limiting.
In case we want to delete all assets of an release just delete and
re-create the whole release instead.
Fixes #77
2023-07-30 15:00:23 +02:00
Christoph Reiter
edc9089808
clean-assets: fewer parallel deletes
...
we are still hitting the secondary rate limit
2023-07-29 21:05:00 +02:00
Christoph Reiter
e3bb36afac
more type annotations
2023-03-24 14:09:24 +01:00
Christoph Reiter
c27f9a7c40
we can only clean assets for the current repo
2023-03-23 12:32:59 +01:00
Christoph Reiter
b453032363
Get rid of MAIN_REPO
...
in most cases at least. either derive from the current
build type, or via get_current_repo() which reads the
GITHUB_REPOSITORY env var.
2023-03-23 11:58:17 +01:00
Christoph Reiter
87f0603c87
Split the code up into separate modules
...
with minimal code changes
2023-03-22 09:59:05 +01:00