compose-action icon indicating copy to clipboard operation
compose-action copied to clipboard

compose-file input does not handle absolute path properly

Open neilime opened this issue 1 year ago • 0 comments

It appears that it may be checking for the docker-compose.yml file relative to the current working directory, so if you have specified an absolute path to the compose-file, then the check fails even though the file is in the right location for the build. Example from a run I tried:

Run hoverkraft-tech/[email protected]

  with:
    compose-file: /runner/_work/myrepo/myrepo/myaction/docker/docker-compose.yml
    cwd: /runner/_work/myrepo/myrepo
  env:
    GH_TOKEN: ***
    WORK_DIR: /runner/_work/myrepo/myrepo/myaction/build/work
    HOME: /runner/_work/myrepo/myrepo/myaction
    ... some other environment variables

Error:

Error: /runner/_work/myrepo/myrepo/myaction/docker/docker-compose.yml does not exist in /runner/_work/myrepo/myrepo

Originally posted by @jayrifkinsv in https://github.com/hoverkraft-tech/compose-action/issues/21#issuecomment-2310804360

neilime avatar Aug 26 '24 18:08 neilime