From dfe394a78a80c0dc4ba7042e168f30fd37832d25 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Thu, 21 Aug 2025 15:43:35 -0300 Subject: [PATCH 1/2] Disable propagate_translations job in ci.yml --- .github/workflows/ci.yml | 127 ++++++++++++++++++++------------------- 1 file changed, 64 insertions(+), 63 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b28bcc1b75..cb88f513ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -226,66 +226,67 @@ jobs: git push - propagate_translations: - runs-on: ubuntu-latest - needs: [trigger, update] - permissions: - contents: read - strategy: - max-parallel: 4 - fail-fast: false - matrix: - branch: ${{fromJson(needs.trigger.outputs.version_pairs)}} - language: ${{fromJson(needs.trigger.outputs.languages)}} - - steps: - - name: Check out main - uses: actions/checkout@v5 - - - name: Check out branch ${{ matrix.branch.new }} - uses: actions/checkout@v5 - with: - ref: ${{ matrix.branch.new }} - path: ${{ matrix.branch.new }} - - - name: Check out branch ${{ matrix.branch.prev }} - uses: actions/checkout@v5 - with: - ref: ${{ matrix.branch.prev }} - path: ${{ matrix.branch.prev }} - - - name: Set up Python 3 - uses: actions/setup-python@v5.6.0 - with: - python-version: '3.12' - cache: 'pip' - cache-dependency-path: | - requirements.txt - - - name: Install Transifex CLI - working-directory: /usr/local/bin - run: | - curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash -s -- v${{ env.TX_CLI_VERSION }} - - - name: Install dependencies - run: | - python3 -m pip install --upgrade pip - python3 -m pip install pomerge - - - name: Merge ${{ matrix.language }} translations from ${{ matrix.branch.new }} into ${{ matrix.branch.prev }} - run: | - if test -d ${{ matrix.branch.prev }}/${{ matrix.language }}; then - shopt -s globstar - pomerge --from-files ${{ matrix.branch.new }}/${{ matrix.language }}/**/*.po --to-files ${{ matrix.branch.prev }}/${{ matrix.language }}/**/*.po - else - echo "Branch ${{ matrix.branch.prev }} has no lang code ${{ matrix.language }}." - fi - - - name: Push ${{ matrix.language }} translations for Python ${{ matrix.branch.prev }} documentation to Transifex - if: ${{ github.event_name == 'schedule' || - (github.event_name == 'workflow_dispatch' && github.event.inputs.push == 'true') }} - working-directory: ${{ matrix.branch.prev }} - run: | - tx push -t -l ${{ matrix.language }} - env: - TX_TOKEN: ${{ secrets.TX_TOKEN }} +# Broken: https://github.com/python-docs-translations/transifex-automations/issues/71 +# propagate_translations: +# runs-on: ubuntu-latest +# needs: [trigger, update] +# permissions: +# contents: read +# strategy: +# max-parallel: 4 +# fail-fast: false +# matrix: +# branch: ${{fromJson(needs.trigger.outputs.version_pairs)}} +# language: ${{fromJson(needs.trigger.outputs.languages)}} +# +# steps: +# - name: Check out main +# uses: actions/checkout@v5 +# +# - name: Check out branch ${{ matrix.branch.new }} +# uses: actions/checkout@v5 +# with: +# ref: ${{ matrix.branch.new }} +# path: ${{ matrix.branch.new }} +# +# - name: Check out branch ${{ matrix.branch.prev }} +# uses: actions/checkout@v5 +# with: +# ref: ${{ matrix.branch.prev }} +# path: ${{ matrix.branch.prev }} +# +# - name: Set up Python 3 +# uses: actions/setup-python@v5.6.0 +# with: +# python-version: '3.12' +# cache: 'pip' +# cache-dependency-path: | +# requirements.txt +# +# - name: Install Transifex CLI +# working-directory: /usr/local/bin +# run: | +# curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash -s -- v${{ env.TX_CLI_VERSION }} +# +# - name: Install dependencies +# run: | +# python3 -m pip install --upgrade pip +# python3 -m pip install pomerge +# +# - name: Merge ${{ matrix.language }} translations from ${{ matrix.branch.new }} into ${{ matrix.branch.prev }} +# run: | +# if test -d ${{ matrix.branch.prev }}/${{ matrix.language }}; then +# shopt -s globstar +# pomerge --from-files ${{ matrix.branch.new }}/${{ matrix.language }}/**/*.po --to-files ${{ matrix.branch.prev }}/${{ matrix.language }}/**/*.po +# else +# echo "Branch ${{ matrix.branch.prev }} has no lang code ${{ matrix.language }}." +# fi +# +# - name: Push ${{ matrix.language }} translations for Python ${{ matrix.branch.prev }} documentation to Transifex +# if: ${{ github.event_name == 'schedule' || +# (github.event_name == 'workflow_dispatch' && github.event.inputs.push == 'true') }} +# working-directory: ${{ matrix.branch.prev }} +# run: | +# tx push -t -l ${{ matrix.language }} +# env: +# TX_TOKEN: ${{ secrets.TX_TOKEN }} From cfcf614d1e53fbf0cceb104017a184de10210efb Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Thu, 21 Aug 2025 16:14:59 -0300 Subject: [PATCH 2/2] Remove broken propagate_translations job from ci.yml See https://github.com/python-docs-translations/transifex-automations/issues/71 --- .github/workflows/ci.yml | 66 ---------------------------------------- 1 file changed, 66 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb88f513ae..15b38a0ba4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -224,69 +224,3 @@ jobs: if: ${{ contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }} run: | git push - - -# Broken: https://github.com/python-docs-translations/transifex-automations/issues/71 -# propagate_translations: -# runs-on: ubuntu-latest -# needs: [trigger, update] -# permissions: -# contents: read -# strategy: -# max-parallel: 4 -# fail-fast: false -# matrix: -# branch: ${{fromJson(needs.trigger.outputs.version_pairs)}} -# language: ${{fromJson(needs.trigger.outputs.languages)}} -# -# steps: -# - name: Check out main -# uses: actions/checkout@v5 -# -# - name: Check out branch ${{ matrix.branch.new }} -# uses: actions/checkout@v5 -# with: -# ref: ${{ matrix.branch.new }} -# path: ${{ matrix.branch.new }} -# -# - name: Check out branch ${{ matrix.branch.prev }} -# uses: actions/checkout@v5 -# with: -# ref: ${{ matrix.branch.prev }} -# path: ${{ matrix.branch.prev }} -# -# - name: Set up Python 3 -# uses: actions/setup-python@v5.6.0 -# with: -# python-version: '3.12' -# cache: 'pip' -# cache-dependency-path: | -# requirements.txt -# -# - name: Install Transifex CLI -# working-directory: /usr/local/bin -# run: | -# curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash -s -- v${{ env.TX_CLI_VERSION }} -# -# - name: Install dependencies -# run: | -# python3 -m pip install --upgrade pip -# python3 -m pip install pomerge -# -# - name: Merge ${{ matrix.language }} translations from ${{ matrix.branch.new }} into ${{ matrix.branch.prev }} -# run: | -# if test -d ${{ matrix.branch.prev }}/${{ matrix.language }}; then -# shopt -s globstar -# pomerge --from-files ${{ matrix.branch.new }}/${{ matrix.language }}/**/*.po --to-files ${{ matrix.branch.prev }}/${{ matrix.language }}/**/*.po -# else -# echo "Branch ${{ matrix.branch.prev }} has no lang code ${{ matrix.language }}." -# fi -# -# - name: Push ${{ matrix.language }} translations for Python ${{ matrix.branch.prev }} documentation to Transifex -# if: ${{ github.event_name == 'schedule' || -# (github.event_name == 'workflow_dispatch' && github.event.inputs.push == 'true') }} -# working-directory: ${{ matrix.branch.prev }} -# run: | -# tx push -t -l ${{ matrix.language }} -# env: -# TX_TOKEN: ${{ secrets.TX_TOKEN }}