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 1a58629 commit 425ef54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/auto-close-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
- name: Check if all tasks are completed and close issue
id: check-tasks
run: |
echo ${{ github.workspace }}
ISSUE_BODY="${{ github.event.issue.body }}"
CHECKBOX_TOTAL=$(echo "$ISSUE_BODY" | grep -o "\- \[\( \)\|\(x\)\]" | wc -l)
CHECKBOX_COMPLETED=$(echo "$ISSUE_BODY" | grep -o "\- \[x\]" | wc -l)
Expand All @@ -26,7 +27,7 @@ jobs:
echo "Issue Body: ${{ github.event.issue.body }}"
echo "goal : https://github.com/zizzic/main_repo/issues/28"
echo "https://github.com/zizzic/main_repo/issues/${{ github.event.issue.number }}"
echo ${{ github.workspace }}
gh issue close https://github.com/zizzic/main_repo/issues/${{ github.event.issue.number }}
elif [ "$CHECKBOX_TOTAL" -eq "0" ]; then
Expand Down

0 comments on commit 425ef54

Please sign in to comment.