Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit bbecf0a

Browse files
authored
Update check-diff-size.yml
edit action to check diff size
1 parent e1cab91 commit bbecf0a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

β€Ž.github/workflows/check-diff-size.ymlβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test
33
on:
44
pull_request:
55
branches:
6-
- "week-1/**"
6+
- "main"
77

88
jobs:
99
check-diff:
@@ -15,17 +15,17 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717

18-
- name: "Check that diff isn't too large"
18+
- name: "Check that diff isn't too small"
1919
env:
2020
GH_TOKEN: ${{ github.token }}
2121
run: |
2222
FILES_CHANGED=$(gh pr diff ${{github.event.pull_request.number}} --name-only | wc -l)
2323
echo "Number of files changed in this PR: ${FILES_CHANGED}"
24-
if [ $FILES_CHANGED -gte 13 ]
24+
if [ $FILES_CHANGED -gte 5 ]
2525
then
26-
echo "You've updated the right number of files for week 1 - good work! 😎"
26+
echo "You've updated at least some files good work! 😎"
2727
exit 1
2828
else
29-
echo "Looks like you've not answered some of the exercises"
29+
echo "Looks like you've not completed enough of the exercises"
3030
exit 0
3131
fi

0 commit comments

Comments
 (0)