Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Fix bili version check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zjns committed May 1, 2023
1 parent 2c61ce6 commit 9624e51
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/check-bilibili-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,11 @@ jobs:
fi
pip3 install -U pip
pip3 install -U urllib3
pip3 install -U requests
py_get_ver_info=$(cat <<EOM
import json
import re
from urllib3 import PoolManager
import requests
http = PoolManager()
url = 'https://app.bilibili.com/x/v2/version/fawkes/upgrade'
params = {
'abi': 'arm64-v8a',
Expand All @@ -129,8 +127,7 @@ jobs:
'cache-control': 'no-cache',
}
try:
req = http.request('GET', url, params, headers)
resp = json.loads(req.data.decode('utf-8'))
resp = requests.get(url, params, headers=headers).json()
if resp['code'] == -304:
print('no')
else:
Expand Down

0 comments on commit 9624e51

Please sign in to comment.