Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 6

Actions not triggered on release

Hi folks, I'd appreciate any hints on what I'm missing.

 

I have a workflow that is triggered by three events:

on:
  pull_request:
  push:
    branches:
      - master
  release:
    types:
      - created

Pull request simply checks that PR is passing tests.

Any push to master creates and uploads nightly builds.

The release creates and uploads stable builds.

 

I tested all the actions separately and they worked. I can also confirm that the PR + master works great.

However, the release builds are not triggered at the moment.

 

So the questions are:

 - what I'm missing with the setup?

 - how do I debug such issues?

 

Here is one of the workflows, in case it helps:

https://github.com/mull-project/mull/blob/master/.github/workflows/ci-ubuntu-18.yml

5 Replies
Highlighted
GitHub Partner
Message 2 of 6

Re: Actions not triggered on release

Hi @AlexDenisov ,

 

Thank you for being here! I forked your sample repo and create a new release, release event is successfully triggered.

Releasetrigger.png

Could you please confirm if it still reproduces for you? Please also notice below points:

1. The release event is not triggered for draft releases, make sure you click the 'publish release' button for release.

2. If 'release' event is defined on 'dev' branch yaml. When you create the release, please notice to select the target branch manually.

 

Thanks.

Highlighted
Copilot Lvl 3
Message 3 of 6

Re: Actions not triggered on release

Hi, thanks for the response.

 

I did another try and it didn't help: the actions are still not running.

I think I'll just try to move to the on-push-tags as a release trigger instead of relying on the release event. I hope that'll work.

 

Cheers,

Alex.

Highlighted
GitHub Partner
Message 4 of 6

Re: Actions not triggered on release

Hi @AlexDenisov ,

 

Thanks for your reply! It's strange that release event is not working for you. As you can trigger them seperately, could you please remove 'push' and 'pull_request', only leave release event for a double check? If it works then, you can add back the other events to identify which code caused the problem. If it still doesn't work, please double check in another repo for release event, share a sample repo will be quite helpful for further investigation.

Of course you can use on-push-tags to monitor the tags instead of release. 

 

Note: Please notice you create the release on 'target' branch which contains the release event in the yaml file.(fixed in my first post)

Please let me know if you have any progress, thanks!

 

Highlighted
Copilot Lvl 3
Message 5 of 6

Re: Actions not triggered on release

>  Note: Please notice you create the release on 'target' branch which contains the release event in the yaml file.(fixed in my first post)

 

Could you please elaborate? I do not set any branches there, so I do expect it just to pick up the release event.

Highlighted
GitHub Partner
Message 6 of 6

Re: Actions not triggered on release

Hi @AlexDenisov ,

 

If your 'release' event workflow yaml file exists on 'prod' branch, when you create/publish the release, please select 'prod' branch manually. Screenshot as below, otherwise the event won't be triggered.

releasebranc.png

Besides, what about removing all other events than release event? Can it be triggered then?

Thanks.