Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 92eeb72

Browse files
committed
add output to 10_create-metadata
1 parent f547dbf commit 92eeb72

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

responses/10_create-metadata.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
💡All of the following steps take place inside of the `.github/actions/hello-world` directory.
44

5-
Our Action does not require much metadata for it to run correctly. We will not be accepting any inputs, nor setting any outputs. Because of that we simply need to name it, give it a description and define its environment.
5+
Our Action does not require much metadata for it to run correctly. We will not be accepting any inputs, we will however be setting a single output this time.
66

77
1. Create a file named `action.yml`
88
2. Use the `name` parameter to name your Action `"external API action"`
99
3. Next, add a `description` parameter and give it a value of `"use an external API to retrieve and display a joke"`
10-
4. Lastly, define the `run` parameter to use `"node12"` to execute the `"main.js"`
10+
4. Create an `outputs:` with an id of `joke-output:` and add a `description:` so we know what the output is for
11+
5. Lastly, define the `run` parameter to use `"node12"` to execute the `"main.js"`
1112

1213
<details><summary>View the complete file</summary>
1314

@@ -16,16 +17,20 @@ Our Action does not require much metadata for it to run correctly. We will not b
1617

1718
description: "use an external API to retrieve and display a joke"
1819

20+
outputs:
21+
joke-output:
22+
description: The resulting joke from the icanhazdadjokes API
23+
1924
runs:
2025
using: "node12"
2126
main: "main.js"
2227
```
2328
2429
</details>
2530
26-
5. Save the `action.yml` file
27-
6. commit the changes:
31+
6. Save the `action.yml` file
32+
7. commit the changes:
2833
`git add .`
2934
`git commit -m 'update action.yml'`
30-
7. push them to the `action-two` branch:
35+
8. push them to the `action-two` branch:
3136
`git push`

0 commit comments

Comments
 (0)