-
Notifications
You must be signed in to change notification settings - Fork 392
Adrienne / added translations download and upload automation for crowdin #9487
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
Adrienne / added translations download and upload automation for crowdin #9487
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information. |
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-adrienne-deriv-feq-453-translations-a-525215.binary.sx/ |
| id: cache_npm | ||
| uses: actions/cache@v3 | ||
| with: | ||
| key: translations-build-${{ hashFiles('**/package-lock.json') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # - We download the latest translation files from Crowdin, if there are new files, we create a PR. | ||
| - name: Generate and push to Crowdin | ||
| run: | | ||
| branch_name="deriv_app_translations_2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We create a separate branch deriv_app_translations_2 to test out the workflow first without conflicting the current translations workflow push_and_pull_crowdin_translations.yml
| content+=":link: *Test Link*: ${{ steps.vercel_preview_url.outputs.vercel_preview_url }}\n" | ||
| content+=":id: *App ID*: ${{ steps.generate_app_id.outputs.app_id }}" | ||
| curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"$content\" }" ${{ secrets.SLACK_TRANSLATIONS_TEAM_WEBHOOK }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The message to retrieve the test link can only be generated under the issue_comment edited event, the repository_dispatch event does not contain the context for retrieving the test links
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| content+=":flag-${{ github.event.client_payload.targetLanguage.id }}: *Updated language*: $updated_language\n" | ||
| content+=":paperclip: *Pull Request*: $pull_request\n" | ||
| content+="_Paimon will soon post the generated test link for the pull request if its successful, hold on tight!_" | ||
| curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"$content\" }" ${{ secrets.SLACK_TRANSLATIONS_TEAM_WEBHOOK }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| actions: write | ||
| checks: write | ||
| contents: write | ||
| deployments: write | ||
| pull-requests: write | ||
| statuses: write |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it need all these permissions? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nopee, I'll remove the unnecessary ones
…/translations-automation-webhook
…/translations-automation-webhook
|
Kudos, SonarCloud Quality Gate passed!
|
|
⏳ Generating Lighthouse report... |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
This PR was closed because it has been stalled for 5 days with no activity. Please reopen it if needed. |











Changes:
Please provide a summary of the change.
Screenshots:
Please provide some screenshots of the change.