diff --git a/content/actions/creating-actions/creating-a-docker-container-action.md b/content/actions/creating-actions/creating-a-docker-container-action.md index 28423b9820..2edc36c2cb 100644 --- a/content/actions/creating-actions/creating-a-docker-container-action.md +++ b/content/actions/creating-actions/creating-a-docker-container-action.md @@ -120,11 +120,20 @@ Next, the script gets the current time and sets it as an output variable that ac ``` If `entrypoint.sh` executes without any errors, the action's status is set to `success`. You can also explicitly set exit codes in your action's code to provide an action's status. For more information, see "[Setting exit codes for actions](/actions/creating-actions/setting-exit-codes-for-actions)." -1. Make your `entrypoint.sh` file executable by running the following command on your system. + +1. Make your `entrypoint.sh` file executable. Git provides a way to explicitly change the permission mode of a file so that it doesn’t get reset every time there is a clone/fork. ```shell{:copy} - $ chmod +x entrypoint.sh + $ git update-index —chmod=+x entrypoint.sh ``` + +1. Optionally, to check the permission mode of the file in the git index, run the following command. + + ```shell{:copy} + $ git ls-files --stage entrypoint.sh + ``` + + An output like `100755 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 entrypoint.sh` means the file has the executable permission. In this example, `755` denotes the executable permission. ## Creating a README