generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Schedule pulling strings separately from opening a PR (#4146)
- Loading branch information
Showing
1 changed file
with
13 additions
and
7 deletions.
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: Pull strings | ||
|
||
on: | ||
schedule: | ||
- cron: "0 */8 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -23,14 +25,18 @@ jobs: | |
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] | ||
create_pull_request: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | ||
|
||
- name: Open pull request | ||
if: github.event_name == 'workflow_dispatch' | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: feat/translations | ||
destination_branch: dev | ||
pr_title: "chore: Sync translations" | ||
pr_body: "Sync translations from [crowdin.com/project/revanced](https://crowdin.com/project/revanced)" | ||
pr_draft: true |