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 2455813 commit 310d9ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/auto-close-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ jobs:
echo "All tasks are completed. Closing issue."
echo "Issue Number: ${{ github.event.issue.number }}"
echo "Issue Body: ${{ github.event.issue.body }}"
gh issue close "#${{ github.event.issue.number }}"
- name: Close issue
uses: peter-evans/close-issue@v1
with:
issue-number: ${{ github.event.issue.number }}
token: ${{ secrets.GITHUB_TOKEN }
elif [ "$CHECKBOX_TOTAL" -eq "0" ]; then
echo "No tasks found. Skipping."
else
Expand Down

0 comments on commit 310d9ab

Please sign in to comment.