This repository was archived by the owner on Sep 1, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,7 @@ Our action does not require much metadata for it to run correctly. We will not b
6
6
7
7
We will not use the ` joke-output ` in in this portion of the course. There will be a later step that will rely on this actions output.
8
8
9
- 1 . Create the action metadata file ` .github/actions/joke-action/action.yml `
10
- 2 . Use the ` name ` parameter to name your action ` "external API action" `
11
- 3 . Next, add a ` description ` parameter and give it a value of ` "use an external API to retrieve and display a joke" `
12
- 4 . Create an ` outputs: ` with an id of ` joke-output: ` and add a ` description: ` so we know what the output is for
13
- 5 . Lastly, define the ` runs: ` parameter to use ` "node12" ` and set the ` main: ` parameter to ` "main.js" `
14
-
15
- <details ><summary >View the complete file</summary >
16
-
9
+ 1 . Create the action metadata file ` .github/actions/joke-action/action.yml ` with the following content:
17
10
``` yaml
18
11
name : " external API action"
19
12
@@ -27,11 +20,8 @@ We will not use the `joke-output` in in this portion of the course. There will b
27
20
using : " node12"
28
21
main : " main.js"
29
22
` ` `
30
-
31
- </details>
32
-
33
- 6. Save the ` action.yml` file
34
- 7. Commit the changes and push them to GitHub :
23
+ 2. Save the ` action.yml` file
24
+ 3. Commit the changes and push them to GitHub :
35
25
` ` ` shell
36
26
git add action.yml
37
27
git commit -m 'add metadata for the joke action'
@@ -40,4 +30,4 @@ We will not use the `joke-output` in in this portion of the course. There will b
40
30
41
31
---
42
32
43
- I'll respond when you push to this branch.
33
+ I'll respond when you push to this branch.
You can’t perform that action at this time.
0 commit comments