I have been experiementing with Github actions to automate our release pipeline. I have a workflow that i require to trigger only when a release is promoted from prerelease to release, so I have created my worklfow as follows:
name: Deploy To Prodcution on: release: type: [released]
However, during my trials I deleted a release, and this workflow triggered and deployed the release I was trying to delete. I feel like the
released event should not be fired on release deletion.
released event was also triggered when editing the release, e.g. changing release name. Again, this goes against what is in the documentation Webhook events and payloads - GitHub Docs and does not make sense by the definition of “released”