higan-emu / higan

higan is a multi-system emulator focused on accuracy, preservation, and configurability.
Other
1.19k stars 112 forks source link

Prevent GitHub Actions from releasing on PRs. #122

Closed jchv closed 4 years ago

jchv commented 4 years ago

This is a bit trickier than expected, but it basically encapsulates the desired logic; it checks to see if we're on a ref that we would want to release for. There seems to be no good way to detect PRs; the previous code was a sham I copy-pasted without validating.

See it in action here:

Screwtapello commented 4 years ago

And the "Build / release" check on this PR is automatically marked "Skipped". Huzzah!