generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
ci: Push strings to Crowdin on string changes #2979
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
14d600a
ci: Separate Crowdin pull and push actions
Ushie cd65153
Update .github/workflows/pull_strings.yml
Ushie a8ade94
Update .github/workflows/push_strings.yml
Ushie b0eb9b9
Update .github/workflows/push_strings.yml
Ushie 16edb27
Update .github/workflows/pull_strings.yml
Ushie 27f5cc1
Apply suggestions from code review
Ushie 12383a4
Apply suggestions from code review
oSumAtrIX 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,34 @@ | ||
name: Pull strings | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: 0 * 1 * * | ||
|
||
jobs: | ||
pull: | ||
name: Pull strings | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Pull strings | ||
uses: crowdin/github-action@v1 | ||
with: | ||
config: crowdin.yml | ||
download_translations: true | ||
localization_branch_name: feat/translations | ||
create_pull_request: true | ||
pull_request_title: "chore: Sync translations" | ||
pull_request_body: "Sync translations from [crowdin.com/project/revanced](https://crowdin.com/project/revanced)" | ||
pull_request_base_branch_name: "dev" | ||
commit_message: "chore: Sync translations" | ||
github_user_name: revanced-bot | ||
github_user_email: [email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }} | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
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,27 @@ | ||
name: Push strings | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- /src/main/resources/addresources/values/strings.xml | ||
|
||
jobs: | ||
push: | ||
name: Push strings | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Push strings | ||
uses: crowdin/github-action@v1 | ||
with: | ||
config: crowdin.yml | ||
upload_sources: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }} | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |
This file was deleted.
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.
This still going to run every hour of the first day of the month. Is this what's intended?
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.
Oops, no, it's not 🤦♂️
@oSumAtrIX 4 eyes again