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

Commit 4d28d9a

Browse files
committed
add links to all steps, fix #9
1 parent ec78ff1 commit 4d28d9a

File tree

1 file changed

+41
-19
lines changed

1 file changed

+41
-19
lines changed

config.yml

Lines changed: 41 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ description: >-
55
template:
66
repo: "writing-javascript-actions-template"
77
name: "writing-javascript-actions"
8+
9+
# Repo artifacts:
10+
# 1. (Issue) Start here!
11+
# 2. (PR) Create my-workflow.yml
12+
# 3. (Issue) Your first JavaScript action
13+
# 4. (PR) Hello Action
14+
# 5. (Issue) Knock Knock...
15+
# 6. (PR) External APIs
16+
# 7. (Issue) Consuming Action Outputs
17+
# 8. (PR) Use Outputs
18+
# 9. (Issue) Last minute notes
19+
820
before:
921
- type: updateBranchProtection
1022
- type: createLabel
@@ -90,8 +102,8 @@ steps:
90102
data:
91103
workflowFile: "%payload.repository.html_url%/edit/%actions.iwPr.data.head.ref%/.github/workflows/my-workflow.yml"
92104

93-
- title: Add an Action reference
94-
description: Add an Action reference to the workflow file
105+
- title: Prep the workflow
106+
description: Prepare the workflow for your future action
95107
event: pull_request.synchronize
96108
link: "{{ repoUrl }}/pull/2"
97109
actions:
@@ -103,9 +115,10 @@ steps:
103115
data:
104116
workflowFile: "%payload.repository.html_url%/edit/%actions.workflowPr.data.head.ref%/.github/workflows/my-workflow.yml"
105117

106-
- title: On to your development environment
107-
description: Lets prepare your environemtn to start writing Actions
118+
- title: Add an Action reference
119+
description: Add an Action reference to the workflow file
108120
event: pull_request.synchronize
121+
link: "{{ repoUrl }}/pull/2"
109122
actions:
110123
- type: createIssue
111124
title: Your first JavaScript action
@@ -119,10 +132,10 @@ steps:
119132
pullRequest: Create my-workflow.yml
120133
- type: mergePullRequest
121134

122-
- title: Creating the Action metadata
123-
description: Create an action.yml file and add necessary metatdata for our Action
135+
- title: On to your development environment
136+
description: Lets prepare your environment to start writing Actions
124137
event: push
125-
# link: "{{ repoUrl }}/issue1/1"
138+
link: "{{ repoUrl }}/issues/3"
126139
actions:
127140
- type: gate
128141
left: "%payload.ref%"
@@ -155,9 +168,10 @@ steps:
155168
with: 05_create-metadata.md
156169
issue: Hello Action
157170

158-
- title: Create the Action entrypoint
159-
description: time to start adding code to main.js
171+
- title: Creating the Action metadata
172+
description: Create an action.yml file and add necessary metatdata for our Action
160173
event: pull_request.synchronize
174+
link: "{{ repoUrl }}/pull/4"
161175
actions:
162176
- type: respond
163177
with: 06_explain-runs.md
@@ -168,9 +182,10 @@ steps:
168182
data:
169183
actionsUrl: "%payload.repository.html_url%/actions"
170184

171-
- title: Adding input parameters
172-
description: extend your action to accept input parameters
185+
- title: Create the Action entrypoint
186+
description: Add code to main.js file
173187
event: pull_request.synchronize #ideally would like the workflow completing to tigger this
188+
link: "{{ repoUrl }}/pull/4"
174189
actions:
175190
- type: respond
176191
with: 07_hello-result.md
@@ -182,8 +197,9 @@ steps:
182197
with: 07_update-files.md
183198

184199
- title: Exploring your input parameters
185-
description: view the results of adding input parameter
200+
description: View the results of adding input parameter
186201
event: pull_request.synchronize #ideally would like workflow complete to trigger this
202+
link: "{{ repoUrl }}/pull/4"
187203
actions:
188204
- type: respond
189205
with: 08_input-result.md
@@ -194,8 +210,9 @@ steps:
194210
with: 08_experiment.md
195211

196212
- title: Integrating Actions with external APIs
197-
description: Write a new Action that call an external API
213+
description: Write a new Action that calls an external API
198214
event: pull_request.closed
215+
link: "{{ repoUrl }}/pull/4"
199216
actions:
200217
- type: updateBranchProtection
201218
- type: createIssue
@@ -220,7 +237,7 @@ steps:
220237
- title: Prevent the workflow from running
221238
description: Comment out the lines in the workflow to prevent unwanted runs
222239
event: pull_request
223-
# link: "{{ repoUrl }}/issue1/1"
240+
link: "{{ repoUrl }}/issues/5"
224241
actions:
225242
- type: gate
226243
gates:
@@ -252,6 +269,7 @@ steps:
252269
- title: Create your new Action metadata
253270
description: Add action.yml file for new joke action
254271
event: pull_request.synchronize
272+
link: "{{ repoUrl }}/pull/6"
255273
actions:
256274
- type: gate
257275
left: "%payload.pull_request.title%"
@@ -263,6 +281,7 @@ steps:
263281
- title: Create your Actions JavaScript files
264282
description: Add joke.j and main.js to your Action
265283
event: pull_request.synchronize
284+
link: "{{ repoUrl }}/pull/6"
266285
actions:
267286
- type: gate
268287
left: "%payload.pull_request.title%"
@@ -274,6 +293,7 @@ steps:
274293
- title: Use the joke Action in a workflow
275294
description: Edit the workflow file to now use the newly created joke Action
276295
event: pull_request.synchronize
296+
link: "{{ repoUrl }}/pull/6"
277297
actions:
278298
- type: gate
279299
left: "%payload.pull_request.title%"
@@ -291,7 +311,7 @@ steps:
291311
- title: Having Actions tell a joke... or two
292312
description: Wait for your Action to present you with a joke
293313
event: pull_request.synchronize
294-
# link: "{{ repoUrl }}/pull/2"
314+
link: "{{ repoUrl }}/pull/6"
295315
actions:
296316
- type: removeBranchProtection
297317
- type: respond
@@ -303,6 +323,7 @@ steps:
303323
- title: Configure the workflow for a third Action
304324
description: Edit the workflow to accomodate the third action
305325
event: pull_request.closed
326+
link: "{{ repoUrl }}/pull/6"
306327
actions:
307328
- type: updateBranchProtection
308329
- type: createIssue
@@ -321,7 +342,7 @@ steps:
321342
- title: Write the final Action
322343
description: Create an Action that consumes output from another Action and uses Octokit
323344
event: pull_request
324-
# link: "{{ repoUrl }}/issue1/1"
345+
link: "{{ repoUrl }}/issues/7"
325346
actions:
326347
- type: gate
327348
gates:
@@ -353,7 +374,7 @@ steps:
353374
- title: Add third Actions metadata
354375
description: Create the metadata for the third Action
355376
event: pull_request.synchronize
356-
# link: "{{ repoUrl }}/pull/2"
377+
link: "{{ repoUrl }}/pull/8"
357378
actions:
358379
- type: gate
359380
left: "%payload.pull_request.title%"
@@ -365,7 +386,7 @@ steps:
365386
- title: Add third Actions JavaScript files
366387
description: Create the JavaScript files for the third Action
367388
event: pull_request.synchronize
368-
# link: "{{ repoUrl }}/pull/2"
389+
link: "{{ repoUrl }}/pull/8"
369390
actions:
370391
- type: gate
371392
left: "%payload.pull_request.title%"
@@ -379,7 +400,7 @@ steps:
379400
- title: Trigger the third Action
380401
description: Add a pull request label to trigger the workflow
381402
event: pull_request.synchronize
382-
# link: "{{ repoUrl }}/pull/2"
403+
link: "{{ repoUrl }}/pull/8"
383404
actions:
384405
- type: gate
385406
left: "%payload.pull_request.title%"
@@ -394,6 +415,7 @@ steps:
394415
- title: Wrapping things up
395416
description: Final notes before you go
396417
event: pull_request.closed
418+
link: "{{ repoUrl }}/pull/8"
397419
actions:
398420
- type: createIssue
399421
title: Last minute notes

0 commit comments

Comments
 (0)