1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Update readme sample in creating-a-javascript-action.md (#21377)

This commit is contained in:
TrianguloY
2022-10-18 04:01:18 +02:00
committed by GitHub
parent 0d9ed1c3fd
commit 93910c65b9

View File

@@ -141,29 +141,31 @@ In your `hello-world-javascript-action` directory, create a `README.md` file tha
- Environment variables the action uses.
- An example of how to use your action in a workflow.
```markdown{:copy}
````markdown{:copy}
# Hello world javascript action
This action prints "Hello World" or "Hello" + the name of a person to greet to the log.
## Inputs
## `who-to-greet`
### `who-to-greet`
**Required** The name of the person to greet. Default `"World"`.
## Outputs
## `time`
### `time`
The time we greeted you.
## Example usage
```yaml
uses: actions/hello-world-javascript-action@v1.1
with:
who-to-greet: 'Mona the Octocat'
```
````
## Commit, tag, and push your action to GitHub