feat(tools): use camperbot for commit (#41659)
This commit is contained in:
committed by
GitHub
parent
b3f296fab2
commit
b0c75eae60
@ -3,7 +3,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
# runs every day at 12:15 PM UTC
|
# runs every day at 12:15 PM UTC
|
||||||
- cron: "15 12 * * *"
|
- cron: '15 12 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
i18n-download-client-ui-translations:
|
i18n-download-client-ui-translations:
|
||||||
@ -65,9 +65,7 @@ jobs:
|
|||||||
skip_untranslated_files: false
|
skip_untranslated_files: false
|
||||||
export_only_approved: true
|
export_only_approved: true
|
||||||
|
|
||||||
commit_message: 'chore(i8n,client): processed translations'
|
push_translations: false
|
||||||
localization_branch_name: i18n-sync-client
|
|
||||||
push_translations: true
|
|
||||||
|
|
||||||
# pull-request
|
# pull-request
|
||||||
create_pull_request: false
|
create_pull_request: false
|
||||||
@ -84,6 +82,18 @@ jobs:
|
|||||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_CLIENT }}
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_CLIENT }}
|
||||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
|
||||||
|
|
||||||
|
# Create Commit
|
||||||
|
- name: Commit Changes
|
||||||
|
env:
|
||||||
|
EMAIL: ${{ secrets.ACTIONS_CAMPERBOT_EMAIL }}
|
||||||
|
run: |
|
||||||
|
git checkout -b i18n-sync-client
|
||||||
|
git config --global user.name "camperbot"
|
||||||
|
git config --global user.email "$EMAIL"
|
||||||
|
git add .
|
||||||
|
git commit -m "chore: update translations"
|
||||||
|
git push -u origin i18n-sync-client -f
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
working-directory: ./tools
|
working-directory: ./tools
|
||||||
run: |
|
run: |
|
||||||
|
@ -3,7 +3,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
# runs every day at 12:30 PM UTC
|
# runs every day at 12:30 PM UTC
|
||||||
- cron: "30 12 * * *"
|
- cron: '30 12 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
i18n-download-curriculum-translations:
|
i18n-download-curriculum-translations:
|
||||||
@ -65,10 +65,7 @@ jobs:
|
|||||||
skip_untranslated_files: true
|
skip_untranslated_files: true
|
||||||
export_only_approved: true
|
export_only_approved: true
|
||||||
|
|
||||||
|
push_translations: false
|
||||||
commit_message: 'chore(i8n,curriculum): processed translations'
|
|
||||||
localization_branch_name: i18n-sync-curriculum
|
|
||||||
push_translations: true
|
|
||||||
|
|
||||||
# pull-request
|
# pull-request
|
||||||
create_pull_request: false
|
create_pull_request: false
|
||||||
@ -85,6 +82,18 @@ jobs:
|
|||||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_CURRICULUM }}
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_CURRICULUM }}
|
||||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
|
||||||
|
|
||||||
|
# Create Commit
|
||||||
|
- name: Commit Changes
|
||||||
|
env:
|
||||||
|
EMAIL: ${{ secrets.ACTIONS_CAMPERBOT_EMAIL }}
|
||||||
|
run: |
|
||||||
|
git checkout -b i18n-sync-curriculum
|
||||||
|
git config --global user.name "camperbot"
|
||||||
|
git config --global user.email "$EMAIL"
|
||||||
|
git add .
|
||||||
|
git commit -m "chore: update translations"
|
||||||
|
git push -u origin i18n-sync-curriculum -f
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
working-directory: ./tools
|
working-directory: ./tools
|
||||||
run: |
|
run: |
|
||||||
|
@ -3,7 +3,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
# runs every day at 12:00 noon UTC
|
# runs every day at 12:00 noon UTC
|
||||||
- cron: "0 12 * * *"
|
- cron: '0 12 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
i18n-download-docs-translations:
|
i18n-download-docs-translations:
|
||||||
@ -99,9 +99,7 @@ jobs:
|
|||||||
skip_untranslated_files: false
|
skip_untranslated_files: false
|
||||||
export_only_approved: true
|
export_only_approved: true
|
||||||
|
|
||||||
commit_message: 'chore(i8n,docs): processed translations'
|
push_translations: false
|
||||||
localization_branch_name: i18n-sync-docs
|
|
||||||
push_translations: true
|
|
||||||
|
|
||||||
# pull-request
|
# pull-request
|
||||||
create_pull_request: false
|
create_pull_request: false
|
||||||
@ -118,6 +116,18 @@ jobs:
|
|||||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_DOCS }}
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_DOCS }}
|
||||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
|
||||||
|
|
||||||
|
# Create Commit
|
||||||
|
- name: Commit Changes
|
||||||
|
env:
|
||||||
|
EMAIL: ${{ secrets.ACTIONS_CAMPERBOT_EMAIL }}
|
||||||
|
run: |
|
||||||
|
git checkout -b i18n-sync-docs
|
||||||
|
git config --global user.name "camperbot"
|
||||||
|
git config --global user.email "$EMAIL"
|
||||||
|
git add .
|
||||||
|
git commit -m "chore: update translations"
|
||||||
|
git push -u origin i18n-sync-docs -f
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
working-directory: ./tools
|
working-directory: ./tools
|
||||||
run: |
|
run: |
|
||||||
|
Reference in New Issue
Block a user