From 6617de771f49d585f10941676cc1fae26871a234 Mon Sep 17 00:00:00 2001 From: snomiao Date: Wed, 8 Oct 2025 04:20:13 +0900 Subject: [PATCH] fix: Add checkout step before using local action in update-locales workflow (#5938) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem The `update-locales` workflow was failing with the error: ``` Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '/home/runner/work/ComfyUI_frontend/ComfyUI_frontend/.github/actions/setup-frontend'. Did you forget to run actions/checkout before running your local action? ``` Ref: https://github.com/Comfy-Org/ComfyUI_frontend/actions/runs/18270266173/job/52011427608 ## Solution Added a checkout step using `actions/checkout@v5` before the "Setup Frontend" step. This ensures the repository code (including the local action definition) is available before GitHub Actions tries to use it. ## Changes - Added checkout step to `.github/workflows/update-locales.yaml` - Uses `actions/checkout@v5` to checkout the repository before referencing the local custom action This is a minimal fix that follows GitHub Actions best practices. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5938-fix-Add-checkout-step-before-using-local-action-in-update-locales-workflow-2846d73d365081cfb720ffaa528ce26e) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions --- .github/workflows/update-locales.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/update-locales.yaml b/.github/workflows/update-locales.yaml index 3bf939b23..6ee093312 100644 --- a/.github/workflows/update-locales.yaml +++ b/.github/workflows/update-locales.yaml @@ -14,6 +14,9 @@ jobs: if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.head.repo.full_name == github.repository && startsWith(github.head_ref, 'version-bump-')) runs-on: ubuntu-latest steps: + - name: Checkout repository + uses: actions/checkout@v5 + - name: Setup Frontend uses: ./.github/actions/setup-frontend