Skip to content

Commit ea8d280

Browse files
authored
Update monitor-prs.yml
Signed-off-by: Kay-Tian <[email protected]>
1 parent 531371e commit ea8d280

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/monitor-prs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ jobs:
124124
# 分页获取所有最近合并的PR
125125
while [ -n "$CURRENT_PAGE_URL" ]; do
126126
# 检查API速率限制
127+
set -x
127128
RATE_LIMIT=$(curl -s -I -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/rate_limit" | grep -i "x-ratelimit-remaining" | awk '{print $2}')
128129
[ "$RATE_LIMIT" -lt 50 ] && echo "速率限制不足,暂停10分钟" && sleep 600
129130

0 commit comments

Comments
 (0)