-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assemble-distro.yml
does not update latest
date
#151
Comments
This comment was marked as outdated.
This comment was marked as outdated.
So right now we are using |
I've inspected the files stored in https://github.com/gap-system/PackageDistro/releases/tag/latest and they were updated! So the uploaded work. Just updating the release resp. tag to point at a new tag did not. |
Urgh. That package uses OctoKit. From the OctoKit documentation for
This in turn is a direct quote from https://docs.github.com/en/rest/reference/releases#update-a-release I am guessing the crucial bit is "Unused if the Git tag already exists". |
But as far as I can tell, https://github.com/meeDamian/github-release also uses this API (see https://github.com/meeDamian/github-release/blob/master/entrypoint.sh). Hrm. But I am sure I verified it worked as intended (= update the tag to point to the new commit). |
I just tested: I can manually update the tag (basically by doing So here's a new idea: instead of reusing the same release, we create new releases. To ensure that we don't drown in releases, and also increase the transactional nature of things (we want to minimize the time in which CI actions in other repository fail due to "latest" not being available), we could do this as part of the "assemble-distro" workflow:
The slow part of this is step 2, but the only time when other CI workflows might run into trouble is during steps 3 and 4. Also, if there is a failure after 3 but before 4 completes, we have a (temporary) problem (but it can be fixed by manually re-running the The critical question here is if step 4 actually works. Looking at the description of the API for updating a release my impression is that this is possible. But someone would have to verify this. |
assemble-distro.yml
does not update latest
tag/release anymoreassemble-distro.yml
does not update latest
date
Actually, it does update the commit just fine! What it doesn't do is update the date of the release, which is annoying, but not really a problem... |
Actually the tag also did not move to the latest commit correctly, but this at least was fixed by 2a52fe7 |
The action logs from a few minutes ago look fine and as if everything worked.
But the
latest
release tag is still at the stage of 14 days ago.This definitely used to work, but at some point I switched to a different GitHub Action for creating / update the release (the previous one was based on Docker which I didn't like). I guess I neglected to properly check after the switch that this case (updating an existing tag) still works...
So the first thing to try is to find the commit where I switched this, and try out using the previous GH action (say on a personal fork of this repo, where one can of course simply switch back and force between older and newer package versions to experiment)
The text was updated successfully, but these errors were encountered: