Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 4

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"]
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 https://github.com/tkfu/homebrew-action-testing. Any ideas? Or is this just a bug?

3 Replies
Copilot Lvl 3
Message 2 of 4

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

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

 

Example:

on:
release:
types: [created, published]

 

Copilot Lvl 2
Message 3 of 4

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

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.

Copilot Lvl 3
Message 4 of 4

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

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?