Skip to content

Added correct commands for steps on Creating a Docker container action page #20132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 28, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down