Trying to load external yaml flows and execute their steps

Hi, I’m trying to do something which could sound a bit tricky but fits with our requirements.
The thing is we have several projects (25) related with each other so we need upstream/downstream builds for most of the PRs we have in order to be sure this is not breaking anything, something like a build-chain where projectA-projectB-projectC has to be built following this order.
I decided to create a github action tool for this https://github.com/Ginxo/github-action-build-chain which is working very close to what I’m looking for, except I can’t run mvn commands, you can check https://github.com/Ginxo/lienzo-tests/pull/1/checks?check_run_id=848769819 (you can see how ls commands are working good, but mvn ones with no error)
I guess this is blocked by github actions’ internal stuff, am I right?
I’m actually using nodejs child_process but I would prefer to use github actions’ libraries to do so, something like action.executeSteps(steps) (where action is a kind of library and steps are loaded from external workfow yaml file).
Any idea on this?
Is the mvn execution from child_process blocked by github?
Is it possible to execute external steps from my github action tool?

you can see a tool usage example here https://github.com/Ginxo/lienzo-tests/blob/0cd6259f51f325a666dceb20e8e602056bd99528/.github/workflows/main.yml#L8 in case you are interested on

The problem was related with the Dockerfile not adding JAVA_HOME but the error message was not shown. I moved child_process to @actions/exec https://github.com/actions/toolkit/tree/master/packages/exec and I could see the error

@Ginxo,

Is the mvn execution from child_process blocked by github?

No, the mvn execution from child_process will not be blocked. The scripts called in the actions will be as part of the workflow steps to execute.

Is it possible to execute external steps from my github action tool?

If you want the action can reuse some steps defined in another workflow YAML file, this is not support currently.
If you want the action can execute some commands defined in a scripts file (such as .sh, .js, .ps1, etc.), as you have found, you can the GitHub Actions Toolkit @actions/exec to call and execute the scripts.