From 3a1b0b7716c8e8a58907cc14113fa324305a24a9 Mon Sep 17 00:00:00 2001 From: XUKUNYUAN Date: Mon, 8 Jul 2024 23:42:56 +0800 Subject: [PATCH] update name --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5b1040e..5e35d2f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -37,14 +37,14 @@ jobs: # 提取需要的值 total_exercations=$(jq '.statistics.total_exercations' $outfile) total_succeeds=$(jq '.statistics.total_succeeds' $outfile) - user_name=$(jq -r '.user_name' $outfile) + github_user="${{ github.actor }}" # 生成新的 JSON 内容 new_json=$(jq -n \ --arg channel "github" \ --argjson courseId 1558 \ --arg ext "aaa" \ - --arg name "$user_name" \ + --arg name "$github_user" \ --argjson score "$total_succeeds" \ --argjson totalScore "$total_exercations" \ '{channel: $channel, courseId: $courseId, ext: $ext, name: $name, score: $score, totalScore: $totalScore}')