kubectl icon indicating copy to clipboard operation
kubectl copied to clipboard

Commands are not executed in the default working-directory

Open dallasclark opened this issue 1 year ago • 1 comments

The action appears to ignore one of the defaults settings:

jobs:
  job-id:
    defaults:
      run:
        working-directory: './bar/foo'

When executing the apply command:

apply -f ./kubernetes.yaml

The following workaround is an easy solution:

apply -f ./bar/foo/kubernetes.yaml

This issue is more of a nice-to-have, and will help anyone else who may face this issue.

dallasclark avatar Jul 19 '22 02:07 dallasclark

Indeed, this functionality would need to be added. If anyone wants to send a PR, I'd be happy to merge.

steebchen avatar Jul 19 '22 11:07 steebchen