Workflow runs not starting after previous workflow completes #26062
-
After following the docs, I can’t figure out why my workflow isn’t starting. I have one workflow But two other workflows setup to run after that workflow completes aren’t starting. They aren’t even showing in the list of workflows on the Actions page. Here’s what one of the child workflows looks like that I’d like to start after the one listed above completes:
Does the “parent” workflow have to do anything special for these others to be seen? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 4 replies
-
andrewconnell:
That sounds suspicious. Are they in the right folder ( |
Beta Was this translation helpful? Give feedback.
-
They are in the correct folder and have the correct extension, but they aren’t in the master branch. The two files in the red box are the ones that aren’t running when the one with the red arrow comples: We’re currently working on a branch and testing everything before moving to master which will roll things into production. Not being on master branch… if that’s our issue then we’ll hold off and try again when we push to production. For now, we’ve just copied the environment variables & contents of the two “child” workflows into the “parent” workflow as new jobs so things will work. |
Beta Was this translation helpful? Give feedback.
-
I stand corrected, the workflow file has to be in the default branch in order to trigger builds manually:
Regarding automated builds:
Anyway, the Actions tab should show the workflows from all branches (there’s a branch filter option). Can you share the |
Beta Was this translation helpful? Give feedback.
-
So it should run from non master branches… that’s what I thought. Here’s what the
FWIW, we’re looking to merge everything into master tomorrow as our workaround has been sufficient so far. |
Beta Was this translation helpful? Give feedback.
-
Alright. Would still like to know why it’s not working with multiple workflows… You could try to rename the workflow file to something that was never used before just to be sure, as there might be a bug (it’s about
In case it helps someone, it worked after changed the file name! It seems that it is a bug with previous file names with the same name. And as a last wild idea, maybe rename the parent workflow to something without ampersand and commas. Also change the |
Beta Was this translation helpful? Give feedback.
-
Sure… and happy to help figure it out. I’ll give these things a shot in the morning… thanks for following up! |
Beta Was this translation helpful? Give feedback.
-
There are few points maybe can explain the problems:
|
Beta Was this translation helpful? Give feedback.
-
I renamed the primary workflow to have only alpha+spaces… but the others still aren’t picking it up: But as you said, the workflow runs on the workflow_run event must be on master (default) branch. Everything is still in a different branch, so it now makes sense they they aren’t working. Once we merge into master we’ll give it another shot. |
Beta Was this translation helpful? Give feedback.
-
How are things going? |
Beta Was this translation helpful? Give feedback.
-
My bad for not following up… we merged to master and launched our app and have spent the time since then dealing with the post-launch fires :slight_smile: Seems once we made it to the master (default) branch, everything started working. I wasn’t clear on the docs with that point so that was more of my error I think. Thanks for the help! |
Beta Was this translation helpful? Give feedback.
@andrewconnell,
There are few points maybe can explain the problems:
The workflow runs on workflow_run event must exist on the master or default branch. And this workflow will only run on the master or default branch, regardless of whether it is triggered by a workflow run on other branches or not.
On the Actions page of a repository, under the “All workflows”, generally the following workflows are listed:
The workflow files exist on any branches, and the workflows have been triggered at least once.
The workflow files exist on the master or default branch, even if the workflows are never triggered.
For some events, especially the workflow_run event, if the workflow file does not…