You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: responses/14_create-metadata.md
+22-31Lines changed: 22 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -29,43 +29,34 @@ Now, we will do something similar so that our action matches what our workflow e
29
29
30
30
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.
31
31
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:
41
52
```shell
42
53
git add action.yml
43
54
git commit -m 'create action.yml'
44
55
git push
45
56
```
46
57
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"
55
58
56
-
description: "consume the output of the previous action and create a new issue in the repository"
57
59
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"
0 commit comments