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

Commit 3179ba1

Browse files
committed
adding defaul param to 14_create-metadata
1 parent 3063efa commit 3179ba1

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

responses/14_create-metadata.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ We will use the `joke-output`, as well as an issue title, in in this portion of
3434
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"`
3535
4. Create an `inputs:` with an id of `joke:` and add a `description:` of `"This will become the body of the created issue"`
3636
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. Lastly, define the `run` parameter to use `"node12"` to execute the `"main.js"`
38-
7. Save the `action.yml` file
39-
8. commit the changes:
37+
6. Give the `issue-title:` a `default:` value of `"a joke for you"`
38+
7. Lastly, define the `run` parameter to use `"node12"` to execute the `"main.js"`
39+
8. Save the `action.yml` file
40+
9. commit the changes:
4041
`git add .`
4142
`git commit -m 'update action.yml'`
42-
9. push the changes to the `action-three` branch:
43-
`git push`
43+
10. push the changes to the `action-three` branch:
44+
`git push`
4445

4546
---
4647

@@ -56,6 +57,7 @@ inputs:
5657
description: "This will become the body of the created issue"
5758
issue-title:
5859
description: "Every issue needs a title, it's nice to supply one, even though you could do this dynamically within your code"
60+
default: "a joke for you"
5961
6062
runs:
6163
using: "node12"

0 commit comments

Comments
 (0)