From 31572816aa17c3d1d2595df06ed0b7ee0b03c39e Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sat, 21 Mar 2026 13:02:01 -0400 Subject: [PATCH] =?UTF-8?q?chore(ci):=20simplify=20Crowdin=20workflow=20an?= =?UTF-8?q?d=20bump=20checkout=20action=20-=20Upgrade=20`actions/checkout`?= =?UTF-8?q?=20from=20v4=20=E2=86=92=20v6=20in=20both=20upload=20and=20down?= =?UTF-8?q?load=20jobs=20-=20Remove=20manual=20`bun=20install`=20+=20compi?= =?UTF-8?q?le=20+=20git=20commit=20steps=20from=20the=20download=20job=20?= =?UTF-8?q?=E2=80=94=20Crowdin's=20own=20action=20now=20handles=20committi?= =?UTF-8?q?ng=20updated=20PO=20files=20via=20`push=5Ftranslations:=20true`?= =?UTF-8?q?=20-=20Allow=20the=20download=20job=20to=20run=20on=20`schedule?= =?UTF-8?q?`=20events=20in=20addition=20to=20`workflow=5Fdispatch`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/crowdin.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 2d09aa3..0b6c29f 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'push' steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Upload sources to Crowdin uses: crowdin/github-action@v2 @@ -35,13 +35,9 @@ jobs: download: name: Download translations runs-on: ubuntu-latest - if: github.event_name == 'workflow_dispatch' + if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' steps: - - uses: actions/checkout@v4 - - - uses: oven-sh/setup-bun@v2 - - - run: bun install --frozen-lockfile + - uses: actions/checkout@v6 - name: Download translations from Crowdin uses: crowdin/github-action@v2 @@ -57,11 +53,3 @@ jobs: CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Commit updated catalogs - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add packages/i18n/src/po/ - git diff --cached --quiet || git commit -m "chore(i18n): update translation catalogs" - git push