Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: GitHub Classroom Workflow

on:
push:
branches: [ main,dev ]
branches: [ main,dev]
paths-ignore:
- 'README.md'
pull_request:
Expand Down Expand Up @@ -250,6 +250,7 @@ jobs:
points: ${{ steps.autograding.outputs.points}}
env:
API_URL: ${{ needs.initialize.outputs.api_url }}
TOKEN: ${{ needs.initialize.outputs.token }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -346,7 +347,7 @@ jobs:

new_json=$(jq -n \
--arg channel "github" \
--argjson courseId 1701 \
--argjson courseId 1753 \
--arg ext "aaa" \
--arg name "$pr1_user" \
--argjson score "$total_succeeds" \
Expand All @@ -362,6 +363,7 @@ jobs:
curl -X POST "$API_URL" \
-H "accept: application/json;charset=utf-8" \
-H "Content-Type: application/json" \
-H "token: $TOKEN"\
-d "$(cat $summary_file)" \
-v

Expand Down Expand Up @@ -475,7 +477,7 @@ jobs:
# 生成新的 JSON 内容
new_json=$(jq -n \
--arg channel "github" \
--argjson courseId 1703 \
--argjson courseId 1754 \
--arg ext "aaa" \
--arg name "$pr2_user" \
--argjson score "$total_succeeds" \
Expand Down
Loading