Skip to content

Support for sparse commit after sparse checkout #689

Description

@QuentiumYT

When I checkout my repository, I use

      - uses: actions/checkout@v4
        with:
          ref: ${{ github.ref }}
          sparse-checkout: urls.txt

After all the action steps, I do git add --sparse results and commit

I tried to replace my commits with your actions but it seems like it doesn't support sparse, would like to know if you can add that?

      - uses: EndBug/add-and-commit@v9
        with:
          add: "results"
          pull: "--rebase --autostash ..."
          default_author: "github_actions"
          message: "update: ${{ matrix.sites.url }}"
[Scan (<action>)]
Error: The following paths and/or pathspecs matched paths that exist
outside of your sparse-checkout definition, so will not be
updated in the index:
results
hint: If you intend to update such entries, try one of the following:
hint: * Use the --sparse option.
hint: * Disable or modify the sparsity rules.
hint: Disable this message with "git config set advice.updateSparsePath false"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: pinnedShould not be labeled as staletype: bugVerified problems that need to be worked on

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions