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

Commit 2f45c03

Browse files
committed
add validation for README
1 parent 4a98e77 commit 2f45c03

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,17 @@ steps:
435435
description: Add a README to your course
436436
event: pull_request.synchronize
437437
actions:
438+
- type: getTree
439+
action_id: tree
440+
recursive: true
441+
sha: '%payload.pull_request.head.sha%'
442+
- type: gate
443+
left: '%actions.tree.data.tree%'
444+
operator: includes
445+
right: path:README.md
446+
else:
447+
type: respond
448+
with: e-no-readme.md
438449
- type: respond
439450
with: publish.md
440451

responses/e-no-readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
You didn't add a README file.

0 commit comments

Comments
 (0)