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

Commit 637a8cd

Browse files
Update 14_create-metadata.md
1 parent ed7e425 commit 637a8cd

File tree

1 file changed

+22
-31
lines changed

1 file changed

+22
-31
lines changed

responses/14_create-metadata.md

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -29,43 +29,34 @@ Now, we will do something similar so that our action matches what our workflow e
2929

3030
We will use the `joke-output`, as well as an issue title, in in this portion of the course so we need to accept `inputs:` for our action.
3131

32-
1. Create a file named `action.yml`
33-
2. Use the `name` parameter to name your action `"issue maker"`
34-
3. Next, add a `description` parameter and give it a value of `"consume the output of the previous action and create a new issue in the repository"`
35-
4. Create an `inputs:` with an id of `joke:` and add a `description:` of `"This will become the body of the created issue"`
36-
5. Create another `inputs:` with an id of `issue-title:` and a `description:` of `"Every issue needs a title, it's nice to supply one, even though you could do this dynamically within your code"`
37-
6. Give the `issue-title:` a `default:` value of `"a joke for you"` and make it a `required:` parameter
38-
7. Lastly, define the `runs:` parameter to use `"node12"` and set the `main:` parameter to `"main.js"`
39-
8. Save the `action.yml` file
40-
9. Commit the changes and push them to GitHub:
32+
1. Create a file named `action.yml` with the following contents:
33+
```yaml
34+
name: "I have issues"
35+
36+
description: "consume the output of the previous action and create a new issue in the repository"
37+
38+
inputs:
39+
joke:
40+
description: "This will become the body of the created issue"
41+
issue-title:
42+
description: "Every issue needs a title, it's nice to supply one, even though you could do this dynamically within your code"
43+
default: "a joke for you"
44+
required: true
45+
46+
runs:
47+
using: "node12"
48+
main: "index.js"
49+
```
50+
2. Save the `action.yml` file
51+
3. Commit the changes and push them to GitHub:
4152
```shell
4253
git add action.yml
4354
git commit -m 'create action.yml'
4455
git push
4556
```
4657

47-
I will respond when you commit to this branch.
48-
49-
---
50-
51-
<details><summary>View the complete file</summary>
52-
53-
```yaml
54-
name: "I have issues"
5558

56-
description: "consume the output of the previous action and create a new issue in the repository"
5759

58-
inputs:
59-
joke:
60-
description: "This will become the body of the created issue"
61-
issue-title:
62-
description: "Every issue needs a title, it's nice to supply one, even though you could do this dynamically within your code"
63-
default: "a joke for you"
64-
required: true
65-
66-
runs:
67-
using: "node12"
68-
main: "index.js"
69-
```
60+
---
7061

71-
</details>
62+
I will respond when you commit to this branch.

0 commit comments

Comments
 (0)