-
Notifications
You must be signed in to change notification settings - Fork 26
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
chore: source updated from crowdin #2305
Merged
+59
−0
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ccfe367
chore: source updated from crowdin
yamilmedina b2787dd
chore: source updated from crowdin, revert later
yamilmedina d217571
chore: source updated from crowdin, revert later
yamilmedina b370f70
Empty-Commit
yamilmedina f41ae0d
chore: pr comments
yamilmedina 2b3b425
Merge branch 'develop' into chore/crowdin-source-updater
yamilmedina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: "Crowdin Action" | ||
|
||
# **What it does**: Download new source from crowdin project. | ||
# **Why we have it**: We want to be able to pull-update base (EN) translations to the project. | ||
# **Who does it impact**: Everyone collaborating on the project, and the translators. | ||
# For more info: https://github.com/crowdin/github-action/blob/master/action.yml | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
synchronize-with-crowdin: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
GITHUB_USER: "AndroidBob" | ||
GITHUB_TOKEN: ${{ secrets.ANDROID_BOB_GH_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Exit if the branch is not default 'develop'" | ||
run: | | ||
if [[ "${{ github.ref }}" != "refs/heads/develop" ]]; then | ||
echo "Branch is not develop, exiting." | ||
exit 0 | ||
fi | ||
|
||
- name: Crowdin action | ||
uses: crowdin/github-action@v1 | ||
with: | ||
project_id: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
token: ${{ secrets.CROWDIN_API_TOKEN }} | ||
|
||
download_sources: true | ||
push_sources: true | ||
upload_sources: false | ||
download_translations: true | ||
upload_translations: false | ||
|
||
create_pull_request: true | ||
localization_branch_name: chore/sync-and-update-localization-source | ||
commit_message: "chore: update localization sources from Crowdin" | ||
pull_request_title: "chore: update localization sources from Crowdin" | ||
pull_request_body: "This PR pulls in the latest localization **source** from Crowdin." | ||
github_user_name: "AndroidBob" | ||
github_user_email: "[email protected]" | ||
|
||
pull_request_labels: "l10n, crowdin" | ||
pull_request_assignees: "AndroidBob" | ||
pull_request_team_reviewers: "wireapp/android" | ||
pull_request_base_branch_name: ${{env.BASE_BRANCH}} | ||
|
||
config: "crowdin.yml" |
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should we remove or is it needed for the GH action to run?
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.
Yes we need the
workflow_dispatch
so we can trigger it manually, I removed the push block tho, the test ran successfullyThere 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.
Who, exactly, and how? We, developers, by hitting the button in
Actions
, or we have some more stuff going on?