1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Merge pull request #20132 from noviicee/noviicee

Added correct commands for steps on Creating a Docker container action page
This commit is contained in:
Joe Clark
2022-09-28 14:25:27 -07:00
committed by GitHub

View File

@@ -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 doesnt 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