actions / checkout

Action for checking out a repo
https://github.com/features/actions
MIT License
5.74k stars 1.7k forks source link

How to pull local repo via path #635

Open kenorb opened 2 years ago

kenorb commented 2 years ago

Normally using git you can specify a path to pull the repo. I've tried to use repository to specify ./some/path, but it failed:

Error: Invalid repository './some/path'. Expected format {owner}/{repo}.

As I'm trying to clone the repo to another folder which I've already have Git files locally.

insano10 commented 4 months ago

I would like an answer to this also. I am using act and mock-github to verify some workflows locally, and when I give a ref to the checkout action, it performs validation assuming the path should be {owner}/repo. This means you cannot checkout from a file path, which is necessary to work with mock-github.

Are there any plans to loosen this validation to support local filesystem repos?