Skip to content

Commit a0e3146

Browse files
author
Martin Lopes
authored
Added updates from peer review
1 parent f250954 commit a0e3146

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

content/actions/creating-actions/creating-a-docker-container-action.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,13 @@ Next, the script gets the current time and sets it as an output variable that ac
107107
time=$(date)
108108
echo "::set-output name=time::$time"
109109
```
110+
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)."
110111

111-
1. Make your `entrypoint.sh` file executable by running following command on your system:
112+
1. Make your `entrypoint.sh` file executable by running the following command on your system.
112113

113114
```shell{:copy}
114-
chmod +x entrypoint.sh
115+
$ chmod +x entrypoint.sh
115116
```
116-
117-
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)."
118117

119118
### Creating a README
120119

@@ -202,7 +201,7 @@ jobs:
202201

203202
#### Example using a private action
204203

205-
Copy the following example workflow code into a `.github/workflows/main.yml` file in your action's repository. You can also replace the `who-to-greet` input with your name. This private action can't be published to {% data variables.product.prodname_marketplace %}, and can only be used in this repository.
204+
Copy the following example workflow code into a `.github/workflows/main.yml` file in your action's repository. You can also replace the `who-to-greet` input with your name. {% if currentVersion == "free-pro-team@latest" %}This private action can't be published to {% data variables.product.prodname_marketplace %}, and can only be used in this repository.{% endif %}
206205

207206
{% raw %}
208207
**.github/workflows/main.yml**

0 commit comments

Comments
 (0)