On: workflow_run: does not work for me

Hi all,
I have a workflow that is triggered on release

name: CreateRelease

on:
  release:
    types: [published]

and a workflow that should be triggered after the CreateRelease workflow runned

name: GitHub Linux Release

on:
  workflow_run:
    workflows: ["CreateRelease"]
    branches: [master]
    types:
      - completed
      - requested

second workflow is never triggered, why? thanks!

I want to create a release in a workflow triggered by a tag push,
after the release has been created, I want to trigger two workflow that build the linux and windows build.

how can I do it?

@sblantipodi,

Is the workflow “GitHub Linux Release” existing on the master or default branch?
To trigger a workflow runs on the workflow_run event, the workflow file should exist on the master or default branch.

Here is a recent reported similar topic as reference:

In addition, if you want the workflow “GitHub Linux Release” is triggered after the workflow “CreateRelease” completed, you should only use the type “completed”.

If the problem still exists, please share your repository with us (if possible), so that we can check more detailed configurations related to the workflows to analyze the root cause.

4 Likes

thanks for the answer, at the end I solved using a multi job workflow. but I understood your suggestion, thanks for the help. love GitHub and its community.

I encountered the issue on my repo here.

So the workflows exist on the master but the default branch cant be the master because we depend on another functionality(wei/pull) to pull from the project that is forked.

Any suggestions as to why this would happen or how I could remedy it ?

The workflow dispatch UI on the website has a drop-down menu to select a branch. Maybe put some placeholder workflow on the default branch and the real workflow on the desired branch (here: master), with the exact name file name?

Ok so I am managing everything on the default branch now as actions on master don’t work like they should.

Now the issue I am having is all the Windows actions get run but as soon as the last windows one is done(WindowsLibd3d12) the one that depends on that one(html5 library) doesn’t get called.

Could it be related to the fact that they use a different platform(one windows and the other ubuntu) or is it because libd3d12 is the last file and html5 library is the first file in the folder hierarchy ?

So after doing a Test it seems to be that workflow_run is capped at max 3 subsequent runs ? that is weird

It could be a deliberate limit to prevent endless loops of workflows being triggered, but if this is actually a restriction then it should be documented.