Skip to content

Commit

Permalink
ci: Schedule pulling strings separately from opening a PR (#4146)
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX authored Dec 16, 2024
1 parent 99f4e4d commit aeca5c1
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/pull_strings.yml
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:
Expand All @@ -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

0 comments on commit aeca5c1

Please sign in to comment.