Skip to content

Add initial-connect matrix expectations and docs table #7

Add initial-connect matrix expectations and docs table

Add initial-connect matrix expectations and docs table #7

Workflow file for this run

name: Crowdin Translations
# https://github.com/crowdin/github-action/tree/master
on:
push:
branches: [master]
paths: ['docs/en/**']
pull_request:
types: [closed]
branches: [master]
paths: ['docs/en/**']
schedule:
- cron: '0 0 * * 0' # Download translations every Sunday
workflow_dispatch:
inputs:
action:
description: 'Action to perform'
required: true
default: 'upload'
type: choice
options:
- upload
- download
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
upload:
name: Upload Sources
if: >-
github.repository_owner == 'mavlink' &&
(
github.event_name == 'push' ||
(github.event_name == 'pull_request' && github.event.pull_request.merged == true) ||
(github.event_name == 'workflow_dispatch' && inputs.action == 'upload')
)
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v6
- name: Upload sources to Crowdin
uses: crowdin/github-action@v2
with:
config: 'docs/crowdin_docs.yml'
upload_sources: true
upload_translations: false
download_translations: false
crowdin_branch_name: master
env:
GITHUB_TOKEN: ${{ secrets.PX4BUILDBOT_ACCESSTOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_DOCS_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.PX4BUILDBOT_CROWDIN_PERSONAL_TOKEN }}
download:
name: Download Translations
if: >-
github.repository_owner == 'mavlink' &&
(
github.event_name == 'schedule' ||
(github.event_name == 'workflow_dispatch' && inputs.action == 'download')
)
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: write
pull-requests: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v6
- name: Download translations from Crowdin
uses: crowdin/github-action@v2
with:
config: 'docs/crowdin_docs.yml'
upload_sources: false
upload_translations: false
download_translations: true
localization_branch_name: l10n_crowdin_docs_translations
crowdin_branch_name: master
create_pull_request: true
pull_request_title: 'New QGC guide translations (Crowdin)'
pull_request_body: 'New QGC guide Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
pull_request_labels: 'translations, automated'
pull_request_base_branch_name: 'master'
env:
GITHUB_TOKEN: ${{ secrets.PX4BUILDBOT_ACCESSTOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_DOCS_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.PX4BUILDBOT_CROWDIN_PERSONAL_TOKEN }}