News for hackers. Stuff that matters.
Re:Doing stupid stuff with GitHub Actions by geokon on Sunday July 26, 2020 @05:40AM (#23955747)
Unlike the authoer, I haven't found Github Actions very intuitive to work with :)

I've asked this before on a similar post, maybe someone here knows. Has anyone managed to get a Pre-Release to track Master using Github Actions? I can't seem to find a working example that does this (and I can't seem to cobble one together myself)

There are a few things that are seemingly intentionally left out of GitHub Actions... like you can create new Releases on a push, but there is no direct way to delete/update a release with fresh builds.

I know you can just get build artifacts - but those are not publicly available and hard to link people to.

Re:Doing stupid stuff with GitHub Actions by spalas on Sunday July 26, 2020 @12:32PM (#23958212)
I think you could build on this action https://github.com/actions/github-script/ which provides a JS client for the GitHub API.

It looks like it supports all of the API routes you would need including:

https://github.com/actions/github-script/blob/b507739f17c210...

To actually perform the release update.

Re:Doing stupid stuff with GitHub Actions by geokon on Wednesday July 29, 2020 @12:43AM (#23983576)
it's strange to me this isn't a first class feature

Thanks for the tip. I don't really know JS so I may dig into this if it becomes a major burden. For the time being I'll just manually delete the prerelease between pushes