Skip to content

Commit

Permalink
add post
Browse files Browse the repository at this point in the history
  • Loading branch information
kunyuanxu-star committed Jul 8, 2024
1 parent 3a1b0b7 commit 3c189dc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,13 @@ jobs:
# 打印新的 JSON 文件到终端
cat $summary_file
- name: Post summary JSON to remote API
run: |
summary_file=".github/result/summary.json"
# 发送 POST 请求
curl -X POST "https://api.learningcamp.cn/web/api/courseRank/createByThird" \
-H "accept: application/json;charset=utf-8" \
-H "Content-Type: application/json" \
-d "$(cat $summary_file)" \
-v

0 comments on commit 3c189dc

Please sign in to comment.