Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
acnicholls opened this issue Oct 9, 2024 · 0 comments
Open

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

acnicholls opened this issue Oct 9, 2024 · 0 comments

Comments

@acnicholls
Copy link

acnicholls commented Oct 9, 2024

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?

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

No branches or pull requests

1 participant