This repository was archived by the owner on Apr 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: GitHub Classroom Workflow
22
33on :
44 push :
5- branches : [ main,dev ]
5+ branches : [ main,dev]
66 paths-ignore :
77 - ' README.md'
88 pull_request :
@@ -250,6 +250,7 @@ jobs:
250250 points : ${{ steps.autograding.outputs.points}}
251251 env :
252252 API_URL : ${{ needs.initialize.outputs.api_url }}
253+ TOKEN : ${{ needs.initialize.outputs.token }}
253254 steps :
254255 - name : Checkout code
255256 uses : actions/checkout@v4
@@ -346,7 +347,7 @@ jobs:
346347
347348 new_json=$(jq -n \
348349 --arg channel "github" \
349- --argjson courseId 1701 \
350+ --argjson courseId 1753 \
350351 --arg ext "aaa" \
351352 --arg name "$pr1_user" \
352353 --argjson score "$total_succeeds" \
@@ -362,6 +363,7 @@ jobs:
362363 curl -X POST "$API_URL" \
363364 -H "accept: application/json;charset=utf-8" \
364365 -H "Content-Type: application/json" \
366+ -H "token: $TOKEN"\
365367 -d "$(cat $summary_file)" \
366368 -v
367369
@@ -475,7 +477,7 @@ jobs:
475477 # 生成新的 JSON 内容
476478 new_json=$(jq -n \
477479 --arg channel "github" \
478- --argjson courseId 1703 \
480+ --argjson courseId 1754 \
479481 --arg ext "aaa" \
480482 --arg name "$pr2_user" \
481483 --argjson score "$total_succeeds" \
You can’t perform that action at this time.
0 commit comments