-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use different config files and do different PRs on one repository #89
Comments
HI @teolemon! It is possible to use different config files and do different PRs on one repository. To do this, you need to split your Crowdin Action WF step into separate steps. Each of these steps should use a different config through the And then, each WF Step will use only a specified config file and will create a separate PR including only those files, that were configured in config. |
@andrii-bodnar Thanks a lot for the answer 👍 Am I right in thinking that this method will trigger a Crowdin build each time (around 45 min for us) ?
|
@teolemon it's interesting 🤔 Just trying to figure out if this is possible now. Crowdin Action doesn't know anything about languages and the only way to control languages - parameters Let's imagine that we will download all the translations once and then we should create a separate PR for each language. Crowdin Action will need to find files for each language, then add to git and commit. This is a difficult task because downloaded files can have different export patterns with different language codes. You could try to split your WF at least by language. In This case, Crowdin Action will create a separate PR for each language and as a result, PRs will be smaller. This shouldn't affect the execution time, because project build ≈ lang1 build + lang2 build + ... + langN build |
Open Food Fact's current workflow is this one, https://github.com/openfoodfacts/openfoodfacts-server/blob/main/.github/workflows/crowdin.yml, with files located in another file https://github.com/openfoodfacts/openfoodfacts-server/blob/main/crowdin.yml I've made a PR implementing your suggestion, but I'm not sure it won't block the 2nd step to the build triggered in the 1st one |
Hi @teolemon! Parallel builds are not allowed in Crowdin and number of simultaneous API requests per account is 20 requests. Is there any way to run a matrix not in parallel, but sequentially? |
@teolemon great, probably with |
What
The text was updated successfully, but these errors were encountered: