Update .gitea/workflows/ci.yml
All checks were successful
Update Community Skins README / Full CI/CD Pipeline (push) Successful in 5s
All checks were successful
Update Community Skins README / Full CI/CD Pipeline (push) Successful in 5s
This commit is contained in:
@@ -74,7 +74,7 @@ jobs:
|
||||
if [ $? -eq 0 ]; then
|
||||
osu_id=$(echo "$content" | awk '/osuid:[ ]*[0-9]+/ { match($0, /[0-9]+/); print substr($0, RSTART, RLENGTH); exit }')
|
||||
if [ -n "$osu_id" ]; then
|
||||
user_data=$(curl -s "https://osu.ppy.sh/api/get_user?k=${{ secrets.OSUAPIV1 }}&u=$osu_id&type=id")
|
||||
user_data=$(curl -s -H 'Cache-Control: no-cache' -H 'Pragma: no-cache' --compressed "https://osu.ppy.sh/api/get_user?k=${{ secrets.OSUAPIV1 }}&u=$osu_id&type=id")
|
||||
pp_rank=$(echo "$user_data" | jq -r '.[0].pp_rank // "9999999"')
|
||||
pp_country_rank=$(echo "$user_data" | jq -r '.[0].pp_country_rank // "-"')
|
||||
username=$(echo "$user_data" | jq -r '.[0].username // "'$owner'"')
|
||||
|
||||
Reference in New Issue
Block a user