-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
I18n Workflow Fixes, Improvements & Github App for CI Integration #644
I18n Workflow Fixes, Improvements & Github App for CI Integration #644
Conversation
β¦ source will be maintained on their own branches
β Deploy Preview for livecodes ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Quality Gate passedIssues Measures |
Hi @hatemhosny, I believe we can re-test #640 with this fix first. Please let me know once you have completed the first two steps in the checklist mentioned above. Also, please make sure to remove the Then, we can proceed with testing the release/deploy workflows, which correspond to the 3rd and 4th items in the checklist. After that, I'll set the GitHub App to private and transfer its ownership to the organization, and then you can re-generate the app private key to ensure security. P.S. I will send you the current private key of the app for testing via email shortly. Please check your inbox. Thanks! |
I noticed that the i18n badge in README is rendered wrongly due to its outdated url. Please consider replacing it with the latest links. |
This worked π
Done. Thank you @zyf722 |
i18n-update-scheduled failed https://github.com/live-codes/livecodes/actions/runs/11645452277 |
I checked the issue and found that the error was due to merge conflicts between To solve this, I made a small patch at #647 that moves the pull step (from Sorry for the inconvenience. Honestly, I have to admit that building such a complex CI pipeline is not as easy as I thought in the first place, and it really requires many trials and errors to make everything work π€ Edited: |
Thank you, @zyf722
Not at all. I thought about using act, but I solved my problems before using it, so I never tried it :) |
Exactly. That's where the problem lies - locally debugging the workflows, reverting changes caused by your mistakes and keeping your environment same with the upstream - have to say, sometimes these things can really be tricky to handle, not to mention when it comes to integration with outer services.
I've heard of So I think we've already done some basic testing with the i18n workflow. I think we can now move on to the release / deploy workflows. Please kindly do some dry runs on the workflows when you have time and let me know if everything works. |
Hi @zyf722 This PR updated the translation key |
Hi @hatemhosny, Sorry for my delayed response, I have been a bit busy this week. I'll check the issue and get back to you as soon as possible. |
Hi @hatemhosny, Just checked the issue, and find out that by default the file upload api of Lokalise won't replace translation that already exists in the project with modified ones in the uploaded file. I've updated the code with Thank you for your patience. Just keep me posted if any other issues arise. |
Thank you @zyf722 The whole workflow now works as expected.
We may now proceed to moving the GitHub App. edit: the sync action failed: https://github.com/live-codes/livecodes/actions/runs/11878352243/job/33098927618 |
Great! Iβm glad to hear that :)
Just one more question before beginning the transfer process: Commit a80f535 replace |
Honestly, I do not have a dry run setup for these. also please have a look here:
|
I've just sent the transfer request to the organization. Please accept it to continue the process.
I believe there are some merge conflicts between Could you please manually solve the conflicts and merge |
Done. Thank you.
Done. |
The UI update PR is aboout to be ready. We plan to update language translations once we do that. |
You could start from the |
Great. I will do that π Please check this. The UI PR is almost ready and we will be working on i18n for that. Your guidance there will be very valuable. Thank you. |
What type of PR is this? (check all applicable)
Description
This PR is intended to fix issues with the i18n workflow introduced in the previous i18n PR.
It also solves the CI issue that PRs created by Github Actions can not trigger other action workflows, by utilizing a dedicated Github App as CI Bot instead.
Documentation has been updated to reflect the changes.
Breaking changes
i18n-update-scheduled
from pushing changes from Github to Lokalise, as these source changes should have already been maintained on their own i18n branch.Related Tickets & Documents
Are there any post-deployment tasks we need to perform?
Some of my suggestions on next moves after merging:
CI_APP_ID
andCI_APP_PRIVATE_KEY
as repo secrets.GH_ACTIONS_REPO_PAT
could theoretically be removed.Allow GitHub Actions to create and approve pull requests
could be revoked in repo settings, as related actions will be handled by the Github App.