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

Document valid forms of repository argument #16

Closed
bk2204 opened this issue Aug 21, 2019 · 3 comments · Fixed by #87
Closed

Document valid forms of repository argument #16

bk2204 opened this issue Aug 21, 2019 · 3 comments · Fixed by #87
Assignees
Milestone

Comments

@bk2204
Copy link

bk2204 commented Aug 21, 2019

I'm trying to set up GitHub Actions for CI on Git LFS. We want to clone Git itself so that we can test against older versions, but it appears that I'm invoking things incorrectly.

I expected that the repository argument could be an arbitrary Git remote, and I've tried https://github.com/git/git and https://github.com/git/git.git, both of which are public, but neither appears to work. The message I get is as follows:

  with:
    repository: https://github.com/git/git
    path: git
    ref: master
    clean: true
##[error]Specified argument was out of the range of valid values.
Parameter name: https://github.com/git/git
##[error]Exit code 1 returned from process: file name '/home/runner/runners/2.157.0/bin/Runner.PluginHost', arguments 'action "GitHub.Runner.Plugins.Repository.CheckoutTask, Runner.Plugins"'.

If you're interested in an example run, the "Build with latest Git" target on https://github.com/git-lfs/git-lfs/runs/198689891 should be illustrative.

Could you document the valid forms of the repository argument so that folks can figure out how to use this functionality?

@TingluoHuang
Copy link
Member

@bk2204 try

    repository: git/git
    path: git
    ref: refs/heads/master
    clean: true

@bk2204
Copy link
Author

bk2204 commented Aug 21, 2019

Okay, thanks for the info; that does appear to work. Could you document that this only takes an NWO (maybe using another term than that) and can't be used to clone arbitrary remote URLs? I feel like other people will be confused by this as well.

@ericsciple ericsciple self-assigned this Nov 23, 2019
@ericsciple ericsciple added this to the v2 milestone Nov 23, 2019
@ericsciple
Copy link
Contributor

@bk2204 thanks, fixed with #87

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 a pull request may close this issue.

3 participants