mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
86844142a9
* try using the generated token in the checkout action * comment out github_user_name * try adding with: token * try env var * try removing github_user_name * restore user_name etc * update action * try persist-credentials: false; * remove persist-creds false * test * restore github actions name
34 lines
936 B
YAML
34 lines
936 B
YAML
name: Crowdin Upload Action
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- 'public/locales/en-US/grafana.json'
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
upload-sources-to-crowdin:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Upload sources
|
|
uses: crowdin/github-action@v2
|
|
with:
|
|
upload_sources: true
|
|
upload_sources_args: '--dest=public/locales/en-US/grafana.json'
|
|
upload_translations: false
|
|
download_translations: false
|
|
create_pull_request: false
|
|
base_url: 'https://grafana.api.crowdin.com'
|
|
config: 'crowdin.yml'
|
|
source: 'public/locales/en-US/grafana.json'
|
|
translation: 'public/locales/%locale%/%original_file_name%'
|
|
env:
|
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|