diff --git a/.github/workflows/android-linux-qt6.6.3.yml b/.github/workflows/android-linux-qt6.6.3.yml index 8c3f14369b7d..8ff8a64270a2 100644 --- a/.github/workflows/android-linux-qt6.6.3.yml +++ b/.github/workflows/android-linux-qt6.6.3.yml @@ -7,6 +7,8 @@ on: - 'Stable*' tags: - 'v*' + paths-ignore: + - 'docs/**' # Do not trigger for any changes under docs pull_request: paths: - '.github/workflows/android-linux-qt6.6.3.yml' diff --git a/.github/workflows/android-linux.yml b/.github/workflows/android-linux.yml index 7d7a753b469d..b6c21711416d 100644 --- a/.github/workflows/android-linux.yml +++ b/.github/workflows/android-linux.yml @@ -7,6 +7,8 @@ on: - 'Stable*' tags: - 'v*' + paths-ignore: + - 'docs/**' # Do not trigger for any changes under docs pull_request: paths: - '.github/workflows/android-linux.yml' diff --git a/.github/workflows/android-macos.yml b/.github/workflows/android-macos.yml index a026eb16b19b..98c56137d7c5 100644 --- a/.github/workflows/android-macos.yml +++ b/.github/workflows/android-macos.yml @@ -7,6 +7,8 @@ on: - 'Stable*' tags: - 'v*' + paths-ignore: + - 'docs/**' # Do not trigger for any changes under docs pull_request: paths: - '.github/workflows/android-macos.yml' diff --git a/.github/workflows/android-windows.yml b/.github/workflows/android-windows.yml index 2ee3628f844f..fc89cab3cbf8 100644 --- a/.github/workflows/android-windows.yml +++ b/.github/workflows/android-windows.yml @@ -7,6 +7,8 @@ on: - 'Stable*' tags: - 'v*' + paths-ignore: + - 'docs/**' # Do not trigger for any changes under docs pull_request: paths: - '.github/workflows/android-windows.yml' diff --git a/.github/workflows/crowdin_docs_download.yml b/.github/workflows/crowdin_docs_download.yml index fdb5f06ba997..28b7769e8780 100644 --- a/.github/workflows/crowdin_docs_download.yml +++ b/.github/workflows/crowdin_docs_download.yml @@ -3,6 +3,8 @@ name: Crowdin - Download Guide Translations # https://github.com/crowdin/github-action/tree/master on: + schedule: + - cron: '0 0 * * 0' # Runs every Sunday at 00:00 UTC workflow_dispatch: permissions: diff --git a/.github/workflows/crowdin_docs_upload.yml b/.github/workflows/crowdin_docs_upload.yml new file mode 100644 index 000000000000..388ae799bad0 --- /dev/null +++ b/.github/workflows/crowdin_docs_upload.yml @@ -0,0 +1,44 @@ +name: Crowdin - Upload Guide sources (en) + +# https://github.com/crowdin/github-action/tree/master + +on: + push: + branches: + - master + paths: + - 'docs/en/**' + pull_request: + types: + - closed + branches: + - master + paths: + - 'docs/en/**' + workflow_dispatch: + +jobs: + upload-to-crowdin: + if: github.event.pull_request.merged == true || github.event_name == 'push' + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: crowdin push + 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: + # A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository). + GITHUB_TOKEN: ${{ secrets.PX4BUILDBOT_ACCESSTOKEN }} + + # A numeric ID, found at https://crowdin.com/project//tools/api + CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_DOCS_PROJECT_ID }} + + # Visit https://crowdin.com/settings#api-key to create this token + CROWDIN_PERSONAL_TOKEN: ${{ secrets.PX4BUILDBOT_CROWDIN_PERSONAL_TOKEN }} diff --git a/.github/workflows/docker-linux.yml b/.github/workflows/docker-linux.yml index 03c924b26c15..985e1e8d7df6 100644 --- a/.github/workflows/docker-linux.yml +++ b/.github/workflows/docker-linux.yml @@ -7,6 +7,8 @@ on: - 'Stable*' tags: - 'v*' + paths-ignore: + - 'docs/**' # Do not trigger for any changes under docs pull_request: paths: - '.github/workflows/docker-linux.yml' diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e8e8c1c2ee33..c001eba45c58 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -7,6 +7,8 @@ on: - 'Stable*' tags: - 'v*' + paths-ignore: + - 'docs/**' # Do not trigger for any changes under docs pull_request: paths: - '.github/workflows/linux.yml' diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index e6ef15950d16..a5b11ee8591d 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -7,6 +7,8 @@ on: - 'Stable*' tags: - 'v*' + paths-ignore: + - 'docs/**' # Do not trigger for any changes under docs pull_request: paths: - '.github/workflows/macos.yml' diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index a84aaae9fed1..0c5488bd254a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -7,6 +7,8 @@ on: - 'Stable*' tags: - 'v*' + paths-ignore: + - 'docs/**' # Do not trigger for any changes under docs pull_request: paths: - '.github/workflows/windows.yml'