activity type for drafted release

https://help.github.com/en/articles/events-that-trigger-workflows#release-event-release

among all the activity types there seems no mention of draft release, what should I use if I want to set my action to be triggered when a new release is drafted? (created doesn’t seem to do it)

2 Likes

I am currently wondering the same thing.

Even I’m wondering the same. Any workaround you guys found @shiqi @eskimag 

Hi @shiqi,

Thank you for being here! I’m afraid there isn’t an Actions trigger for draft releases. Because GitHub Actions is built atop our existing eventing system, the event triggers can be expected to work in the same way that our webhooks do:

https://developer.github.com/webhooks/

Moving forward here, it’s possible that you may want to “filter” your actions in a way that only triggers on certain conditions. One of our colleagues developed their own toolkit written in JavaScript for building actions with support for triggering events based on a specific action:

https://github.com/JasonEtco/actions-toolkit
https://github.com/JasonEtco/actions-toolkit#event-optional

I hope this helps!