Skip to content

Fix PR Check workflow initialization for local setup action - #544

Merged
jliermann merged 6 commits into
mainfrom
copilot/fix-github-actions-workflow
Sep 10, 2026
Merged

Fix PR Check workflow initialization for local setup action#544
jliermann merged 6 commits into
mainfrom
copilot/fix-github-actions-workflow

Conversation

Copilot AI commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

The PR Check workflow invoked the local setup-node-env action before the repository was checked out, causing job initialization to fail with Can't find 'action.yml'. This updates the workflow so each job resolves the local action from a checked-out workspace while preserving existing check behavior.

  • Workflow ordering

    • Add actions/checkout@v4 before every use of ./.github/actions/setup-node-env
    • Keep the rest of each job’s validation steps unchanged
  • Build validation checkout depth

    • Move full-history checkout to the build-validation job with fetch-depth: 0
    • Remove the misplaced fetch-depth input from the local action invocation
  • Composite action scope

    • Narrow .github/actions/setup-node-env to Node setup + npm ci
    • Leave checkout responsibility to the calling workflow to avoid redundant clones across jobs
  • Workflow hardening

    • Add minimal contents: read permissions
    • Only run the optional Crowdin download when the token is available
steps:
  - name: Checkout repository
    uses: actions/checkout@v4

  - name: Setup Node environment
    uses: ./.github/actions/setup-node-env

Copilot AI and others added 5 commits September 10, 2026 17:10
Co-authored-by: jliermann <40795855+jliermann@users.noreply.github.com>
Co-authored-by: jliermann <40795855+jliermann@users.noreply.github.com>
Co-authored-by: jliermann <40795855+jliermann@users.noreply.github.com>
Co-authored-by: jliermann <40795855+jliermann@users.noreply.github.com>
Co-authored-by: jliermann <40795855+jliermann@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow for PR checks Fix PR Check workflow initialization for local setup action Sep 10, 2026
Copilot AI requested a review from jliermann September 10, 2026 17:17
@jliermann
jliermann marked this pull request as ready for review September 10, 2026 17:19
@jliermann
jliermann merged commit 9043423 into main Sep 10, 2026
3 of 6 checks passed
@jliermann
jliermann deleted the copilot/fix-github-actions-workflow branch September 10, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants