diff --git a/content/actions/creating-actions/dockerfile-support-for-github-actions.md b/content/actions/creating-actions/dockerfile-support-for-github-actions.md index d41850561dae..c989dc4512e2 100644 --- a/content/actions/creating-actions/dockerfile-support-for-github-actions.md +++ b/content/actions/creating-actions/dockerfile-support-for-github-actions.md @@ -83,9 +83,11 @@ Using the example Dockerfile above, {% data variables.product.product_name %} wi ``` sh #!/bin/sh -# `$*` expands the `args` supplied in an `array` individually -# or splits `args` in a string separated by whitespace. -sh -c "echo $*" +# `$#` expands to the number of arguments and `$@` expands to the supplied `args` +printf '%d args:' "$#" +printf $' \'%s\'' "$@" +printf ' <%s>' "$@" +echo ``` Your code must be executable. Make sure the `entrypoint.sh` file has `execute` permissions before using it in a workflow. You can modify the permission from your terminal using this command: