@@ -293,6 +293,14 @@ steps:
293293 thirdPullNumber : " %payload.pull_request.number%"
294294 thirdPullUrl : " %payload.pull_request.html_url%"
295295 left : " %payload.pull_request.title%"
296+ operator : ===
297+ right : Update my-workflow.yml
298+ # if those statments FAIL... do this
299+ else :
300+ - type : respond
301+ with : e-rename-pr.md
302+ data :
303+ title : Update my-workflow.yml
296304 - type : octokit
297305 method : projects.listForRepo
298306 owner : " %payload.repository.owner.login%"
@@ -354,25 +362,20 @@ steps:
354362 with : new-issue.md
355363 issue : " %registration.store.thirdPullNumber%"
356364 data :
357- # issueURL: "%actions.triggerIssue.data.html_url%"
358365 issueURL : " %registration.store.fourthIssueUrl%"
359366
360367 - title : Another workflow run
361368 description : Observe the results of an enhanced workflow run
362- # event: check_suite.completed
363- event : issue_comment.created
369+ event : check_suite.completed
364370 link : " {{store.fourthIssueUrl}}"
365371 actions :
366372 - type : gate
367- left : " %payload.comment.user.login %"
373+ left : " %payload.check_suite.app.name %"
368374 operator : ===
369- right : " github-actions[bot] "
375+ right : " GitHub Actions "
370376 else :
371377 - type : respond
372- issue : " %registration.store.fourthIssueNumber%"
373- with : debug.md
374- data :
375- debug : " %payload%"
378+ with : e-action-result.md
376379 - type : respond
377380 with : 09_workflow-completed.md
378381 issue : " %registration.store.fourthIssueNumber%"
@@ -387,6 +390,13 @@ steps:
387390 event : check_suite.completed
388391 link : " {{repoUrl}}/issue/8"
389392 actions :
393+ - type : gate
394+ left : " %payload.check_suite.app.name%"
395+ operator : ===
396+ right : " GitHub Actions"
397+ else :
398+ - type : respond
399+ with : e-action-result.md
390400 - type : respond
391401 with : 10_workflow-completed.md
392402 issue : 8
0 commit comments