Skip to content

Commit

Permalink
✅ update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunhThanhDe committed Nov 4, 2024
1 parent 23e8a70 commit f24753a
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/update_leaderboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,7 @@ jobs:
- name: Close Issue
if: steps.update_leaderboard.outputs.result == 'true'
uses: actions/github-script@v7
uses: peter-evans/close-issue@v3
with:
script: |
console.log(context); // Log context for debugging
console.log(github); // Log github object for debugging
const issue_number = context.payload.issue.number; // Lấy số issue từ context
const { owner, repo } = context.repo; // Lấy thông tin repo
await github.issues.update({
owner,
repo,
issue_number,
state: 'closed'
});
issue-number: ${{ github.event.issue.number }}
comment: Auto-closing issue ${{ github.event.issue.number }}

0 comments on commit f24753a

Please sign in to comment.