How can we differentiate between release and pre-release at the git repo level? #160435
-
|
We've nightly builds, building the latest images based on the ubuntu20 / ubuntu22 / win22 release tags. At the git repo level, how can we know if we're dealing with a release or a pre-release. Probably I'm missing the obvious. Recently we were fooled by actions/runner-images@d08c3d22 |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 5 replies
-
|
Good point, |
Beta Was this translation helpful? Give feedback.
-
|
For myself in the future and anyone looking to have a workflow for prerelease and release working in every condition:
Here's the pre-release workflow. NOTE: the if is required, the workflow will be called when creating a release directly but skipped : and the release workflow: |
Beta Was this translation helpful? Give feedback.

I use the following api:
https://api.github.com/repos/OWNER/REPO/releases/latest
To get the latest release. As for a pre-release, I'm not sure.