From 0e17a16cdd7653431b5cab53d0628c74af8af1dd Mon Sep 17 00:00:00 2001 From: 29071 Date: Wed, 8 Jan 2025 09:29:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=A7=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E5=92=8Cai=E7=BC=96=E8=AF=91=E5=99=A8?= =?UTF-8?q?=E4=B9=A0=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index da35497..42aec1e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: GitHub Classroom Workflow on: push: - branches: [ main,dev ] + branches: [ main,dev] paths-ignore: - 'README.md' pull_request: @@ -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 @@ -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" \ @@ -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 @@ -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" \