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

Commit 19c3ac5

Browse files
committed
another workflow test
1 parent 4d30633 commit 19c3ac5

File tree

1 file changed

+27
-22
lines changed

1 file changed

+27
-22
lines changed

config.yml

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,21 @@ steps:
4242
link: "{{store.welcomeIssueUrl}}"
4343
actions:
4444
- type: gate
45+
left: "%payload.pull_request.title%"
4546
store:
4647
firstPullNumber: "%payload.pull_request.number%"
4748
firstPullUrl: "%payload.pull_request.html_url%"
48-
left: "%payload.pull_request.title%"
49-
operator: ===
50-
right: Create my-workflow.yml
5149

52-
# if those statments FAIL... do this
53-
else:
54-
- type: respond
55-
with: e-rename-pr.md
56-
data:
57-
title: Create my-workflow.yml
58-
# if those gates === true Then do this stuff
50+
# operator: ===
51+
# right: Create my-workflow.yml
5952

53+
# # if those statments FAIL... do this
54+
# else:
55+
# - type: respond
56+
# with: e-rename-pr.md
57+
# data:
58+
# title: Create my-workflow.yml
59+
# if those gates === true Then do this stuff
6060
#######################################################
6161
# Validate the filepath for the my-workflow.yml file
6262
# get tree
@@ -89,7 +89,7 @@ steps:
8989
issue: "%registration.store.welcomeIssueNumber%"
9090
with: new-pull-request.md
9191
data:
92-
pullUrl: "%payload.pull_request.html_url%"
92+
pullUrl: "%registration.store.firstPullUrl%"
9393
- type: closeIssue
9494
issue: "%registration.store.welcomeIssueNumber%"
9595
- type: createReview
@@ -101,7 +101,7 @@ steps:
101101
data:
102102
actionsUrl: "%payload.repository.html_url%/actions%"
103103

104-
- title: Merge the Create my-workflow.yml pull request
104+
- title: Merge your first pull request
105105
description: Make the workflow available to the repository by merging the pull request
106106
event: pull_request.closed
107107
link: "{{store.firstPullUrl}}"
@@ -116,7 +116,7 @@ steps:
116116
with: new-issue.md
117117
issue: "%registration.store.firstPullNumber%"
118118
data:
119-
issueURL: "%registration.store.secondIssueNumber%"
119+
issueURL: "%registration.store.secondIssueUrl%"
120120

121121
- title: Add another GitHub Script action
122122
description: Use GitHub Script to place this issue into a project board
@@ -167,6 +167,9 @@ steps:
167167
link: "{{ store.secondIssueUrl }}"
168168
actions:
169169
- type: gate
170+
store:
171+
secondPullNumber: "%result.data.number%"
172+
secondPullUrl: "%result.data.html_url%"
170173
left: "%payload.pull_request.title%"
171174
operator: ===
172175
right: Update my-workflow.yml
@@ -212,19 +215,19 @@ steps:
212215
issue: "%registration.store.secondIssueNumber%"
213216
with: new-pull-request.md
214217
data:
215-
pullUrl: "%payload.pull_request.html_url%"
218+
pullUrl: "%registration.store.secondPullUrl%"
216219
- type: closeIssue
217220
issue: "%registration.store.secondIssueNumber%"
218221
- type: createReview
219222
body: 04_merge-workflow.md
220223
event: APPROVE
221-
store:
222-
secondPullNumber: "%result.data.number%"
223-
secondPullUrl: "%result.data.html_url%"
224+
# store:
225+
# secondPullNumber: "%result.data.number%"
226+
# secondPullUrl: "%result.data.html_url%"
224227
data:
225228
actionsUrl: "%payload.repository.html_url%/actions"
226229

227-
- title: Merge the new workflow into the master branch
230+
- title: Merge the updated workflow into the master branch
228231
description: Make the workflow available for use on the repository
229232
event: pull_request.closed
230233
link: "{{ store.secondPullUrl }}"
@@ -249,12 +252,12 @@ steps:
249252
link: "{{store.thirdIssueUrl}}"
250253
actions:
251254
- type: gate
252-
left: "%payload.check_suite.app.name%"
255+
left: "%payload.comment.user.login%"
253256
operator: ===
254-
right: "GitHub Actions"
257+
right: "github-actions[bot]"
255258
else:
256259
- type: respond
257-
issue: "%registration.store.thirdIssueNumber%"
260+
issue: "%registration.store.secondIssueNumber%"
258261
with: debug.md
259262
data:
260263
debug: "%payload%"
@@ -284,7 +287,9 @@ steps:
284287

285288
- title: Create better comments
286289
description: Use a templated repsonse as the comment body
287-
event: pull_request
290+
event:
291+
- pull_request.opened
292+
- pull_request.edited
288293
link: "{{repoUrl}}/pull/6"
289294
actions:
290295
- type: octokit

0 commit comments

Comments
 (0)