mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Update azure-pipelines-translation.yml for Azure Pipelines
This commit is contained in:
parent
dae6895a95
commit
e7ccb6f047
@ -6,8 +6,21 @@ trigger:
|
|||||||
include:
|
include:
|
||||||
- dev
|
- dev
|
||||||
pr: none
|
pr: none
|
||||||
|
schedules:
|
||||||
|
- cron: "0 1 * * *"
|
||||||
|
displayName: "translation update"
|
||||||
|
branches:
|
||||||
|
include:
|
||||||
|
- dev
|
||||||
|
always: true
|
||||||
variables:
|
variables:
|
||||||
- group: translation
|
- group: translation
|
||||||
|
resources:
|
||||||
|
repositories:
|
||||||
|
- repository: azure
|
||||||
|
type: github
|
||||||
|
name: 'home-assistant/ci-azure'
|
||||||
|
endpoint: 'home-assistant'
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -26,3 +39,24 @@ jobs:
|
|||||||
|
|
||||||
./script/translations_upload
|
./script/translations_upload
|
||||||
displayName: 'Upload Translation'
|
displayName: 'Upload Translation'
|
||||||
|
|
||||||
|
- job: 'Download'
|
||||||
|
condition: eq(variables['Build.Reason'], 'Schedule')
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-latest'
|
||||||
|
steps:
|
||||||
|
- task: UsePythonVersion@0
|
||||||
|
displayName: 'Use Python 3.7'
|
||||||
|
inputs:
|
||||||
|
versionSpec: '3.7'
|
||||||
|
- template: templates/azp-step-git-init.yaml@azure
|
||||||
|
- script: |
|
||||||
|
export LOKALISE_TOKEN="$(lokaliseToken)"
|
||||||
|
export AZURE_BRANCH="$(Build.SourceBranchName)"
|
||||||
|
|
||||||
|
./script/translations_download
|
||||||
|
displayName: 'Download Translation'
|
||||||
|
- script: |
|
||||||
|
commit -am "[CI] Translation update"
|
||||||
|
commit push
|
||||||
|
displayName: 'Update translation'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user