Closed Dan-Burlacu closed 11 months ago
The redirect-to
option in actions-hub/kubectl
set the output of the step Get job result
to the environment variable $GITHUB_ENV
. The error may be caused by this unescaped env. Could you try to run azure/cli
with @master
?
It worked, thank you. Still have some warnings, but they don't prove fatal to the action:
This warning is related to the default docker
path in Kubernetes. It happened when using the which
command to locate the executable path of docker
.
https://github.com/Azure/cli/blob/d88d5767d50cde2679128b45d287ec5b98df892e/src/main.ts#L121
When searching for the path /usr/local/bin/kubectl/docker
, the ENOTDIR
error was caught in actions/io/tryGetExecutablePath. The error will not terminate process but continuing searching for the extension paths. You may check which docker is actually being used by running which docker
in a bash script. Guess your docker path has been overridden.
When using this action after actions-hub/kubectl@master (https://github.com/actions-hub/kubectl) with a redirect-to output, the azurecli action fails with the following error:![image](https://github.com/Azure/cli/assets/117628147/5d76f645-10a1-443f-b310-c5c552972513)
This is the action that triggers this behavior:![image](https://github.com/Azure/cli/assets/117628147/a4a8bfae-1a3b-43ad-a08b-dfba36e0219e)
This is how the azurecli action is used afterwards:![image](https://github.com/Azure/cli/assets/117628147/aa5915fa-9107-40a5-91d2-97916a3ae8b3)
If using the same kubectl action but without getting the output via redirect-to, the azurecli action only logs some errors, but completes successfully:![image](https://github.com/Azure/cli/assets/117628147/aa4021ee-219d-42d5-a573-e459e3928a56)
This is the build phase for the kubectl action that might interfere with the azurecli action:![image](https://github.com/Azure/cli/assets/117628147/069881bc-3e73-4239-9ba6-55cef7582b51)