There are two ways, one exporting from the cloned repositories and one exporting from gitlab by using a gitlab token. Both are needed. While trivial in theory, this will be hard due to the number and the size of the repositories.
NB: the script must live in https://gitlab.openquake.org/hazard/mosaic/mosaic, not in the engine.
This is too hard to maintain (30 repositories require 30 access codes that expire all the time). Abandoned. Instead store somewhere a jobs.zip file so that it can be downloaded by the GitLab action.
There are two ways, one exporting from the cloned repositories and one exporting from gitlab by using a gitlab token. Both are needed. While trivial in theory, this will be hard due to the number and the size of the repositories. NB: the script must live in https://gitlab.openquake.org/hazard/mosaic/mosaic, not in the engine.
The following code can be useful: