This commit is contained in:
kingmo888 2024-08-12 16:39:08 +08:00
parent 38e4269025
commit 67ce71773b

View File

@ -19,6 +19,7 @@ jobs:
while [[ -z "$STARRED" ]]; do
STARRED_RESPONSE=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/stargazers?per_page=100&page=$PAGE")
echo "STARRED_RESPONSE=$STARRED_RESPONSE" # 输出 API 返回的数据以检查结构
if [[ -z "$STARRED_RESPONSE" || "$STARRED_RESPONSE" == "[]" ]]; then
break
@ -38,6 +39,7 @@ jobs:
- name: Close issue if not starred
if: env.starred == '0'
run: |