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

Commit be17e0f

Browse files
committed
add write the final action to config
1 parent f908d67 commit be17e0f

2 files changed

Lines changed: 35 additions & 4 deletions

File tree

config.yml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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
File renamed without changes.

0 commit comments

Comments
 (0)