@@ -223,7 +223,6 @@ steps:
223223 data :
224224 title : External APIs
225225 # if those gates === true Then do this stuff
226- # ##############################################################################################################
227226 - type : closeIssue
228227 issue : Knock Knock...
229228 - type : respond
@@ -284,13 +283,13 @@ steps:
284283 data :
285284 actionsUrl : " %payload.repository.html_url%/actions"
286285
287- - title : Creating the third and final Action
288- description : Create an Action that consumes output from another Action and uses Octokit
286+ - title : Configure the workflow for a third Action
287+ description : Edit the workflow to accomodate the third action
289288 event : pull_request.closed
290289 actions :
291290 - type : updateBranchProtection
292291 - type : createIssue
293- body : 13_action-three.md
292+ body : 13_action-three-workflow .md
294293 title : Consuming Action Outputs
295294 action_id : outputIssue
296295 data :
@@ -301,3 +300,35 @@ steps:
301300 issue : External APIs
302301 data :
303302 issueUrl : " %actions.outputIssue.data.html_url%"
303+
304+ - title : Write the final Action
305+ description : Create an Action that consumes output from another Action and uses Octokit
306+ event : pull_request
307+ # link: "{{ repoUrl }}/issue1/1"
308+ actions :
309+ - type : gate
310+ gates :
311+ # if the payload action is 'opened' OR 'edited'
312+ - left : " %payload.action%"
313+ operator : ===
314+ right : opened
315+ - left : " %payload.action%"
316+ operator : ===
317+ right : edited
318+ # AND the pull request title equals 'Initial Workflow'
319+ - type : gate
320+ left : " %payload.pull_request.title%"
321+ operator : ===
322+ right : Use Outputs
323+
324+ # if those statments FAIL... do this
325+ else :
326+ - type : respond
327+ with : e-rename-pr.md
328+ data :
329+ title : Use Outputs
330+ # if those gates === true Then do this stuff
331+ - type : closeIssue
332+ issue : Consuming Action Outputs
333+ - type : respond
334+ with : 14_action-three.md
0 commit comments