Skip to content

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

@pnewhook

Description

@pnewhook

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 [email protected] 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions