From f9a8ee07e7994a1ec26ccd7fb2e50dffe00da4d7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 25 Oct 2026 05:20:37 +0100 Subject: [PATCH] Run the translate job when nothing needed extracting Its condition had no status function, so the implicit success() failed whenever extract was skipped upstream, which is nearly every run: no translation has been produced since the workflow landed. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/i18n-sync.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/i18n-sync.yml b/.github/workflows/i18n-sync.yml index e376d7677287..a01f702f755d 100644 --- a/.github/workflows/i18n-sync.yml +++ b/.github/workflows/i18n-sync.yml @@ -251,7 +251,10 @@ jobs: translate: needs: [prepare, publish-extract] - if: needs.prepare.outputs.locales != '[]' + # Without a status function the implicit success() also fails when an + # upstream job was skipped, and extract is skipped whenever there is + # nothing to extract, which kept every translation pending. + if: ${{ always() && !cancelled() && needs.prepare.result == 'success' && needs.publish-extract.result == 'success' && needs.prepare.outputs.locales != '[]' }} strategy: fail-fast: false matrix: