We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ad36ef commit ce935e9Copy full SHA for ce935e9
.github/workflows/classroom.yml
@@ -25,7 +25,10 @@ jobs:
25
command: |
26
REPO="${{ github.repository }}"
27
REPO="${REPO##*/}"
28
- STUDENT="${REPO##*-}"
+
29
+ # Strip trailing -<number> only
30
+ STUDENT="$(echo "$REPO" | sed -E 's/-[0-9]+$//')"
31
32
COUNT=$(git log main --author="$STUDENT" --pretty=oneline | wc -l | tr -d ' ')
33
echo "Student: $STUDENT"
34
echo "Commit count on main: $COUNT"
@@ -37,4 +40,4 @@ jobs:
37
40
env:
38
41
CHECK-COMMITS_RESULTS: "${{steps.check-commits.outputs.result}}"
39
42
with:
- runners: check-commits
43
+ runners: check-commits
0 commit comments