Merge pull request #20132 from noviicee/noviicee
Added correct commands for steps on Creating a Docker container action page
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user