Skip to content
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

Fix fetching translations for github actions #2449

Merged
merged 13 commits into from
Mar 23, 2023

Conversation

breadbyte
Copy link
Member

As reported in #2424.

This PR makes the following changes:

  1. Actually makes the entire build fail when fetching translations fails, but continues building if it is skipped. This was broken in Update github build workflow [skip ci] #2424.

The translation cache is actually a crucial part of the system, as fetching the translations per build in parallel is not allowed by the Crowdin API, and returns an error.

  1. Fetching the translations also fetches the repository, so we skip checking out the repository if fetching the translations was successful.

Changes the way the translation job fetches and stores translations in the cache.

When translations are fetched, the repository is included in the cache, therefore we need to skip the checkout step in the build job.

Otherwise, run the checkout step.

Also clean up comments.
Use the correct context for the build conditional
I can't spell my name right
Accidentally using an old version of the job.
Remove my repository from the translation fetch
(to simulate fetching from a different repository from MCC)
@breadbyte breadbyte merged commit 425cff5 into MCCTeam:master Mar 23, 2023
@breadbyte breadbyte deleted the gh-actions-translations-fix branch March 23, 2023 03:31
@breadbyte breadbyte restored the gh-actions-translations-fix branch March 23, 2023 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant