From c8fe7b4fea922b1d7517bea9927fd72fd89b9599 Mon Sep 17 00:00:00 2001 From: ChunhThanhDe Date: Mon, 4 Nov 2024 22:42:57 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20Update=20github=20action=20Workf?= =?UTF-8?q?low?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/updateLeaderboard.js | 6 +++--- .github/workflows/update_leaderboard.yml | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/updateLeaderboard.js b/.github/updateLeaderboard.js index 7c88e94..7d7f3e1 100644 --- a/.github/updateLeaderboard.js +++ b/.github/updateLeaderboard.js @@ -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); diff --git a/.github/workflows/update_leaderboard.yml b/.github/workflows/update_leaderboard.yml index aa8e865..e4e67de 100644 --- a/.github/workflows/update_leaderboard.yml +++ b/.github/workflows/update_leaderboard.yml @@ -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! ✅ +