Skip to content

Commit

Permalink
Update2 (#9)
Browse files Browse the repository at this point in the history
* update action

* long close
  • Loading branch information
Lomet authored Dec 22, 2024
1 parent 3008224 commit 53cde15
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ jobs:
uses: actions/deploy-pages@v4

# Step 7: Close the issue
- name: Close Issue
- name: Close issue
if: github.event_name == 'issues'
uses: peter-evans/close-issue@v3
with:
issue-number: ${{ github.event.issue.number }}
comment: "Issue processed and auto-closed."
run: |
curl -X PATCH \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }} \
-d '{"state": "closed"}'

0 comments on commit 53cde15

Please sign in to comment.