clowdhaus / argo-cd-action

GitHub action for executing Argo CD 🦑
Apache License 2.0
77 stars 14 forks source link

Error: Destination file path /home/actions/argocd already exists #26

Open pnewhook opened 12 months ago

pnewhook commented 12 months ago

Describe the bug When running argo-cd-action on a custom runner, steps fail if the /home/actions/argocd directory already exists

To Reproduce Steps to reproduce the behavior:

  1. Add argo-cd-actions@v2.0.0 to a project that uses a custom runner and has previously used argo-cd-action v1.12.1
  2. Run an argocd command
  3. Get an error. that the /home/actions/argocd directory already exists

Debug Log

##[debug][index] command: app,sync,foo,-l,argocd.argoproj.io/instance=bar
##[debug][index] options: --auth-token=***
##[debug][index] version: 2.8.4
##[debug]isExplicit: 2.8.4
##[debug]explicit? true
##[debug]checking cache: /home/actions/_work/_tool/argocd/2.8.4/x64
##[debug]not found
##[debug]Unable to find "argocd" executable, downloading it now
##[debug][debug()] getExecutableUrl: https://github.com/argoproj/argo-cd/releases/download/v2.8.4/argocd-linux-amd64
##[debug]Downloading https://github.com/argoproj/argo-cd/releases/download/v2.8.4/argocd-linux-amd64
##[debug]Destination /home/actions/argocd
Destination file path /home/actions/argocd already exists
Waiting 16 seconds before trying again
Destination file path /home/actions/argocd already exists
Waiting 17 seconds before trying again
Error: Destination file path /home/actions/argocd already exists
lrobles-iterable commented 10 months ago

I am getting this issue as well running version 2.6.7 on self hosted runners