Skip to content

Commit

Permalink
🔖 Update github action Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunhThanhDe committed Nov 4, 2024
1 parent 40c72d9 commit c8fe7b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/updateLeaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ module.exports = async ({ github, context }) => {

const issue = result.repository.issue;

const nameMatch = /👤 Name:\s*(.*?)\n-/.exec(issue.bodyText);
const githubLinkMatch = /🔗 GitHub Profile Link:\s*(.*?)\n-/.exec(issue.bodyText);
const messageMatch = /💬 Message:\s*(.*?)\n-/.exec(issue.bodyText);
const nameMatch = /👤 Name:(.*?)\n-/.exec(issue.bodyText);
const githubLinkMatch = /🔗 GitHub Profile Link:(.*?)\n-/.exec(issue.bodyText);
const messageMatch = /💬 Message:(.*?)\n-/.exec(issue.bodyText);
const scoreMatch = /Score:\s*(\d+)/.exec(issue.title);
const dateMatch = /Game Result Submission:\s*(.*?) - Score:/.exec(issue.title);
const modeMatch = /Mode:\s*(\d+)/.exec(issue.title);
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update_leaderboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ jobs:
uses: peter-evans/close-issue@v3
with:
issue-number: ${{ github.event.issue.number }}
comment: Auto-closing issue ${{ github.event.issue.number }}
comment: Have fun playing! 🎉 - Your score has been added to the Leaderboard, and the issue has been automatically closed! ✅

0 comments on commit c8fe7b4

Please sign in to comment.