Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: