Skip to content

Commit

Permalink
Update auto-close-issue.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
poriz authored Jan 31, 2024
1 parent a120659 commit 0bbf0ab
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/auto-close-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
echo "All tasks are completed. Closing issue."
echo "Issue Number: ${{ github.event.issue.number }}"
echo "Issue Body: ${{ github.event.issue.body }}"
echo "::set-output name=should_close::true"
gh issue close ${{ github.event.issue.number }}
elif [ "$CHECKBOX_TOTAL" -eq "0" ]; then
echo "No tasks found. Skipping."
else
Expand All @@ -33,10 +34,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# 이 부분은 별도의 스텝으로 추가합니다.
- name: Close issue
if: steps.check-tasks.outputs.should_close == 'true'
uses: peter-evans/close-issue@v1
with:
issue-number: ${{ github.event.issue.number }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0bbf0ab

Please sign in to comment.