From 2486446e237365db31075a719648cb3bad5de310 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Mon, 22 Jun 2026 00:09:20 -0400 Subject: [PATCH] Fix root-owned files breaking the translations PR step (#2405) --- .github/workflows/download-translations.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/download-translations.yml b/.github/workflows/download-translations.yml index 0992a913d..4aa056387 100644 --- a/.github/workflows/download-translations.yml +++ b/.github/workflows/download-translations.yml @@ -37,6 +37,12 @@ jobs: - name: Run Laravel Pint uses: aglipanci/laravel-pint-action@8eedec46a1856977c41667f9c66d5562fa3f9c08 # 2.4 + # The Crowdin and Pint steps run in Docker as root, so new translation + # files land owned by root. Reclaim them so the host-side git operations + # in create-pull-request can manage the working tree. + - name: Fix file ownership + run: sudo chown -R "$(id -u):$(id -g)" "${{ github.workspace }}" + - name: Create Pull Request uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 with: