From 7b5405ecbe257ab8f3ba50c71cc0aa9c48bf5541 Mon Sep 17 00:00:00 2001 From: Patrick Sonnerat Date: Wed, 9 Oct 2024 21:02:20 +0200 Subject: [PATCH] Revert "Add crowdin action" --- ...warnings.yml => build-warnings.yml.BACKUP} | 3 +- ...etings4firstIssueOrPullRequest.yml.BACKUP} | 0 ...nk-checker.yml => link-checker.yml.BACKUP} | 0 .github/workflows/tests.yml | 3 -- .github/workflows/translations.yml | 36 ------------------- crowdin.yml | 10 ++---- 6 files changed, 5 insertions(+), 47 deletions(-) rename .github/workflows/{backup/build-warnings.yml => build-warnings.yml.BACKUP} (96%) rename .github/workflows/{backup/greetings4firstIssueOrPullRequest.yml => greetings4firstIssueOrPullRequest.yml.BACKUP} (100%) rename .github/workflows/{backup/link-checker.yml => link-checker.yml.BACKUP} (100%) delete mode 100644 .github/workflows/translations.yml diff --git a/.github/workflows/backup/build-warnings.yml b/.github/workflows/build-warnings.yml.BACKUP similarity index 96% rename from .github/workflows/backup/build-warnings.yml rename to .github/workflows/build-warnings.yml.BACKUP index 41a59c38b79c..6ae6ba603c2d 100644 --- a/.github/workflows/backup/build-warnings.yml +++ b/.github/workflows/build-warnings.yml.BACKUP @@ -4,6 +4,7 @@ on: push: branches: - master + workflow_dispatch: jobs: @@ -46,7 +47,7 @@ jobs: run: | cd ${{ env.DOC_PATH }} sphinx-build -T -E -n -v -w build_log.txt -q -b html -d _build/doctrees . _build/html - + - name: Store build log uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/backup/greetings4firstIssueOrPullRequest.yml b/.github/workflows/greetings4firstIssueOrPullRequest.yml.BACKUP similarity index 100% rename from .github/workflows/backup/greetings4firstIssueOrPullRequest.yml rename to .github/workflows/greetings4firstIssueOrPullRequest.yml.BACKUP diff --git a/.github/workflows/backup/link-checker.yml b/.github/workflows/link-checker.yml.BACKUP similarity index 100% rename from .github/workflows/backup/link-checker.yml rename to .github/workflows/link-checker.yml.BACKUP diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 261be42993b2..d141834a99eb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,9 +1,6 @@ name: Tests on: - push: - branches: - - master workflow_dispatch: jobs: diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml deleted file mode 100644 index 3c3c6398a84e..000000000000 --- a/.github/workflows/translations.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Update translations - -on: - push: - branches: - - master - schedule: - - cron: '7 0 * * *' # every day at 00:07 UTC - workflow_dispatch: - -jobs: - synchronize-with-crowdin: - runs-on: ubuntu-latest - if: github.repository == 'openaps/AndroidAPSdocs' - permissions: - contents: write - pull-requests: write - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: crowdin action - uses: crowdin/github-action@v1 - with: - upload_sources: true - upload_translations: false - download_translations: true - localization_branch_name: l10n_translations - create_pull_request: true - pull_request_title: 'New translations' - pull_request_body: 'New translations' - pull_request_base_branch_name: 'main' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} \ No newline at end of file diff --git a/crowdin.yml b/crowdin.yml index 9abd15347c3d..64fc581ab29e 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,11 +1,7 @@ -project_id: '310610' -api_token_env: CROWDIN_PERSONAL_TOKEN -preserve_hierarchy: true - files: - source: /docs/EN/**/*.md - translation: /docs/CROWDIN/%two_letters_code%/%original_path%/%original_file_name% + translation: /docs/CROWDIN/%two_letters_code%/**/%original_file_name% - source: /docs/EN/**/*.rst - translation: /docs/CROWDIN/%two_letters_code%/%original_path%/%original_file_name% + translation: /docs/CROWDIN/%two_letters_code%/**/%original_file_name% - source: /docs/EN/images/**/* - translation: /docs/CROWDIN/%two_letters_code%/images/%original_path%/%original_file_name% + translation: /docs/CROWDIN/%two_letters_code%/images/**/%original_file_name%