Skip to content

Commit

Permalink
Update close-old-issue.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sk66641 authored Oct 7, 2024
1 parent 2c47957 commit 41bb46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/close-old-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
"https://api.github.com/repos/${{ github.repository }}/issues/$issue" \
| jq -r '.updated_at')
days_since_update=$(( ( $(date +%s) - $(date -d "$last_updated" +%s) ) / 86400 ))
if [ $days_since_update -gt 30 ]; then
if [ $days_since_update -gt 36525 ]; then
curl -s -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
-d '{"state":"closed"}' \
Expand Down

0 comments on commit 41bb46b

Please sign in to comment.