From a2fbffa455050ac0579afec32b1bcb16281adc64 Mon Sep 17 00:00:00 2001 From: Sander Bruens Date: Mon, 11 Mar 2024 15:16:25 -0400 Subject: [PATCH] chore(www): remove "missing translations" action --- .github/workflows/pull_request_checks.yml | 44 ----------------------- 1 file changed, 44 deletions(-) diff --git a/.github/workflows/pull_request_checks.yml b/.github/workflows/pull_request_checks.yml index 88ecf270c7..aeb4753c2c 100644 --- a/.github/workflows/pull_request_checks.yml +++ b/.github/workflows/pull_request_checks.yml @@ -82,47 +82,3 @@ jobs: run: | echo "This PR has the 'need test' label. Please remove it before merging." exit 1 - - translations: - name: '[WIP] Missing Translations Label' - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v3 - - - name: Check resources/original_messages.json - id: changed-original-messages - uses: tj-actions/changed-files@v35 - with: - files: resources/original_messages.json - - - name: Collect src/www/messages Changes - if: steps.changed-original-messages.outputs.any_changed == 'true' - id: changed-translated-messages - uses: tj-actions/changed-files@v35 - with: - files: src/www/messages/*.json - - - name: Check src/www/messages Changes - if: steps.changed-original-messages.outputs.any_changed == 'true' - id: not-every-translation-changed - run: | - TRANSLATIONS_COUNT="$(ls src/www/messages | wc -l | xargs)" - IFS=' ' read -r -a TRANSLATED_MESSAGES <<< "${{ steps.changed-translated-messages.outputs.all_changed_files }}" - TRANSLATED_MESSAGES_COUNT="${#TRANSLATED_MESSAGES[@]}" - if [ "${TRANSLATED_MESSAGES_COUNT}" != "${TRANSLATIONS_COUNT}" ]; then - echo "Translations are not atomic. Please update all translations in a single commit." - echo "Changed translations: ${TRANSLATED_MESSAGES_COUNT}" - echo "Expected translations: ${TRANSLATIONS_COUNT}" - echo "result=true" >> "${GITHUB_OUTPUT}" - fi - - - name: Apply 'Missing Translations' Label - if: steps.not-every-translation-changed.outputs.result == 'true' - uses: actions-ecosystem/action-add-labels@v1 - with: - labels: missing translations \ No newline at end of file