github-actions icon indicating copy to clipboard operation
github-actions copied to clipboard

drone-github-action/action seems to require that the code be cloned even if it is not used

Open rwc9u opened this issue 2 years ago • 0 comments

I'm trying to call the GHA configure-aws-credentials in a stage where I have not downloaded my associate code. It's not necessary for the stage. I only want to check if an image exists in an ECR repo and the tag that I want to check is an output from a previous step.

The stage works fine if I clone the repo. However, if I turn off the cloning to try to save some time I get the following:

time=2023-06-21T07:11:40.088Z level=INFO msg="detected github action action.yml"
time="2023-06-21T07:11:40Z" level=warning msg="unable to get git repo: repository does not exist"
time="2023-06-21T07:11:40Z" level=error msg="path/harnessnot located inside a git repository" error="repository does not exist"
time="2023-06-21T07:11:40Z" level=warning msg="unable to get git ref: repository does not exist"
time="2023-06-21T07:11:40Z" level=error msg="path/harnessnot located inside a git repository" error="repository does not exist"
time="2023-06-21T07:11:40Z" level=warning msg="unable to get git revision: repository does not exist"
[drone-github-action/action] unable to get git repo: repository does not exist
[drone-github-action/action] path/harnessnot located inside a git repository
[drone-github-action/action] unable to get git ref: repository does not exist
[drone-github-action/action] path/harnessnot located inside a git repository
[drone-github-action/action] unable to get git revision: repository does not exist
[drone-github-action/action] unable to get git repo: repository does not exist
[drone-github-action/action] path/harnessnot located inside a git repository
[drone-github-action/action] unable to get git ref: repository does not exist
[drone-github-action/action] path/harnessnot located inside a git repository
[drone-github-action/action] unable to get git revision: repository does not exist
[drone-github-action/action]   ☁  git clone 'https://github.com/aws-actions/configure-aws-credentials' # ref=v2

rwc9u avatar Jun 21 '23 07:06 rwc9u