Skip to content

Commit f24753a

Browse files
committed
✅ update github action
1 parent 23e8a70 commit f24753a

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

.github/workflows/update_leaderboard.yml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,7 @@ jobs:
3636
3737
- name: Close Issue
3838
if: steps.update_leaderboard.outputs.result == 'true'
39-
uses: actions/github-script@v7
39+
uses: peter-evans/close-issue@v3
4040
with:
41-
script: |
42-
console.log(context); // Log context for debugging
43-
console.log(github); // Log github object for debugging
44-
45-
const issue_number = context.payload.issue.number; // Lấy số issue từ context
46-
const { owner, repo } = context.repo; // Lấy thông tin repo
47-
await github.issues.update({
48-
owner,
49-
repo,
50-
issue_number,
51-
state: 'closed'
52-
});
41+
issue-number: ${{ github.event.issue.number }}
42+
comment: Auto-closing issue ${{ github.event.issue.number }}

0 commit comments

Comments
 (0)