Workflow set for on:release not triggering, not showing up

I’m trying out github actions, and I can’t get my action to trigger on release. The documentation says it’s supposed to trigger when a release is created, edited, and other things, but no matter what I do I can’t get it working. I’ve tried:

on: release

on: ["release"]

    types: ["created","edited"]

(And, of course, created releases to try to trigger the action.) But it just won’t work! The repo is Any ideas? Or is this just a bug?


I have the same issue. Nothing is triggered when a release is created.


types: [created, published]  

I should have posted an update. My issue was a misunderstanding of the system. The trigger only executes when a release is created using a tag that contains the workflow. I had committed my workflow to master, but was trying to trigger it using releases based on older tags, of commits that didn’t contain the workflow.

I don’t know if that happens to be the same issue you’re having @hannseman, but good luck.

I’ve done some more tests and the action is triggered when creating a release through the Github webpage but when creating a release through the API this event is not triggered. Feels like a bug no?


Triggering a release through the API is working for me; workflows that run “on: release” are being triggered.

Are you creating a draft release?  Or a prerelease?

Are you creating a release from a GitHub Actions workflow?  If so, are you using the GITHUB_TOKEN to authenticate?  Releases created when authenticating with the GITHUB_TOKEN will prevent new workflows from running.  If you want to run new workflows, you’ll need to set up a different PAT and add that as a secret.


What I’m seeing is if you create a draft, and then publish that draft. The Create event never gets triggered. Surely the create event should fire whenever it gets created, regardless of the state it’s created in, no?

This is entirely through the web GUI. No idea about the API.

Perhaps the code to trigger release events need a sanity check.


Could you please elaborate on this by providing an example?

@tkfu wrote:

The trigger only executes when a release is created using a tag that contains the workflow.

1 Like

This is the real solution, I spent far too long trying to solve this. I wish I could kiss your head, thank you

I have the same problem, it seems that when I first create a draft and then publish it, it’s not triggered, whereas if I write all of a sudden and publish directly it’s triggered.

EDIT: I tried on an empty repository, I added a new workflow triggered when a release is created and I can confirm that it’s when a draft is created that the workflow doesn’t trigger.
It’s really annoying, I often write drafts before publishing… :sweat_smile:


This still seems to be an issue @ethomson.

I have a workflow which releases my code when a tag is created, which works fine.
The issue is when you create a draft release and then publish the draft. The tag is created but the action workflow is not triggered foe some reason.

1 Like

I am seeing the same behavior as well. The event only gets triggered if it is published immediately upon creation. If I save the draft and then publish it, it never triggers. This is applying to both created and published types.