Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
kingmo888 committed Aug 12, 2024
1 parent 38e4269 commit 67ce717
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/auto-close-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -38,6 +39,7 @@ jobs:
- name: Close issue if not starred
if: env.starred == '0'
run: |
Expand Down

0 comments on commit 67ce717

Please sign in to comment.