Skip to content

bug: sparse-checkout checks out undefined paths #1628

Open
@konck2

Description

@konck2

Issue: sparse-checkout checks out undefined paths

  uses: actions/checkout@v4
  with:
    fetch-depth: 1
    ref: ${{ github.sha }}
    sparse-checkout-cone-mode: false
    sparse-checkout: |
      folder1
      myfile.yaml

Actual behaviour (checks out repository contents in following manner):

- folder1
- folderabc/myfile.yaml
- folderabc2/myfile.yaml
- myfile.yaml

Expected behaviour:

- folder1
- myfile.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions