Closed DanielLopez-nbcuni closed 7 months ago
I noticed that the echo-debug
function has a hyphen in the name and the action is running in sh
as can be seen from this screenshot. Could it be a problem with the hyphen in the name? https://unix.stackexchange.com/questions/168221/are-there-problems-with-hyphens-in-functions-aliases-and-executables
After rebuilding the image with echo_debug
instead of echo-debug
. That fixed the error.
However, It then failed again at line 43 due to the <<<
and it being sh
shell. So the next fix was running the github action step with the shell
parameter set to bash.
- name: Build sandbox
shell: bash
run: |
source build-env
sandbox-init
When using
docksal/ci-agent:latest
ORdocksal/ci-agent:edge-php
and using the github workflow example.Got the following error;
/__w/_temp/088f377d-c351-4fb2-a72b-53e3f1b60aa4.sh: /usr/local/bin/build-env: line 32: syntax error: bad function name Error: Process completed with exit code 2.