We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 531371e commit ea8d280Copy full SHA for ea8d280
.github/workflows/monitor-prs.yml
@@ -124,6 +124,7 @@ jobs:
124
# 分页获取所有最近合并的PR
125
while [ -n "$CURRENT_PAGE_URL" ]; do
126
# 检查API速率限制
127
+ set -x
128
RATE_LIMIT=$(curl -s -I -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/rate_limit" | grep -i "x-ratelimit-remaining" | awk '{print $2}')
129
[ "$RATE_LIMIT" -lt 50 ] && echo "速率限制不足,暂停10分钟" && sleep 600
130
0 commit comments