GitLab CI/CD command to add file(s)

Hi all,

I am having difficulty understanding how to add files to a GitLab project using CI/CD commands via Crowdin.

While it’s possible to link files to a job using the “artifacts” command line approach, I would like to know how to add new files that are not yet part of the project.

I haven’t found any examples in the documentation provided by Crowdin. Any assistance, especially with examples, would be greatly appreciated.

Thank you for your help
François

Hi @francoisc ,

To add new files to your GitLab project using CI/CD commands via Crowdin, you can integrate Crowdin CLI into your GitLab CI/CD pipeline. This setup allows you to automate the upload of new source files to your Crowdin project and download translations back to your repository. Using the links below, you can find the CLI commands as well as some more details on the GitLab CI/CD:

If you have any further questions, feel free to let us know!

Hello Tania,

I’ve been through the documentation but it’s not 100% clear how to achieve this.

I tried with - crowdin download --no-progress --keep-archive but the files are not showing up in the GitLab project itself. The zip file is kept and the files were unzipped on the runner.

Would it possible to list the commands I need to achieve the following and where (if in crowdin.yml or else):

  • Add one or several files/folders if not existing in the GitLab repo?
  • Commit message
  • Merge request

Thank you very much in advance
François

Hi @francoisc ,

Thank you for the additional details!

  • With GitLab CI/CD you can upload source files to your Crowdin project and download translation back to your repo. Thus, it’s necessary to have the files that you want to work with on your repo.
  • You can change the message using the commit_message parameter in your configuration file.
  • There is no possibility to affect merge requests via this feature, unfortunately.

Thank you very much for your input @TaniaM .