Skip to content

action doesn't use git repo with git > 2.18 installed #1936

Open
@acnicholls

Description

@acnicholls

I can't seem to get my runner to create or use a repository

Here's my action calling code

      - name: Check out the code with a filter
        id: download-compose-files
        uses: actions/checkout@v4
        with:
          ref: develop
          sparse-checkout: |
            docker-compose.ghcr-stage.yml
          sparse-checkout-cone-mode: true

and here's the result from the workflow log:


Getting Git version info
  Working directory is '<redacted>'
  /usr/bin/git version
  git version 2.25.1
Deleting the contents of '<redacted>'
The repository will be downloaded using the GitHub REST API
To create a local Git repository instead, add Git 2.18 or higher to the PATH
Downloading the archive

this is a self-hosted running ubuntu 20.04 and non-root user with the action runner running as a service.
what am I missing?

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