完成作业
This commit is contained in:
parent
47b459da42
commit
145d2fafcb
@ -126,17 +126,8 @@ jobs:
|
||||
ORG=$(echo "${{ github.repository }}" | cut -d'/' -f1)
|
||||
REPO_NAME=$(echo "${{ github.repository }}" | cut -d'/' -f2)
|
||||
|
||||
# Extract assignment ID
|
||||
if echo "$REPO_NAME" | grep -q -- '-stu_'; then
|
||||
ASSIGNMENT_ID=$(echo "$REPO_NAME" | sed 's/-stu_.*//')
|
||||
elif echo "$REPO_NAME" | grep -q -- '-template'; then
|
||||
ASSIGNMENT_ID=$(echo "$REPO_NAME" | sed 's/-template.*//')
|
||||
# 处理只有数字的仓库名(如学号)
|
||||
elif echo "$REPO_NAME" | grep -q '^[0-9]\+$'; then
|
||||
ASSIGNMENT_ID="$REPO_NAME"
|
||||
else
|
||||
ASSIGNMENT_ID="final-vibevault"
|
||||
fi
|
||||
# 直接使用正确的测试仓库名
|
||||
ASSIGNMENT_ID="final-vibevault"
|
||||
|
||||
echo "📥 Fetching tests and grading scripts from ${ORG}/${ASSIGNMENT_ID}-tests..."
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user