Skip to content

Commit 6617de7

Browse files
snomiaogithub-actions
andauthored
fix: Add checkout step before using local action in update-locales workflow (#5938)
## 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 <[email protected]>
1 parent 8936212 commit 6617de7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/update-locales.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.head.repo.full_name == github.repository && startsWith(github.head_ref, 'version-bump-'))
1515
runs-on: ubuntu-latest
1616
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v5
19+
1720
- name: Setup Frontend
1821
uses: ./.github/actions/setup-frontend
1922

0 commit comments

Comments
 (0)