From 275ac8d84a25c7c317d6cae69123b80e4cfec5d9 Mon Sep 17 00:00:00 2001 From: ChunhThanhDe Date: Mon, 4 Nov 2024 21:07:59 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20=20update=20workflow=20github=20?= =?UTF-8?q?action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update_leaderboard.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_leaderboard.yml b/.github/workflows/update_leaderboard.yml index ef86a0c..9445d80 100644 --- a/.github/workflows/update_leaderboard.yml +++ b/.github/workflows/update_leaderboard.yml @@ -24,12 +24,13 @@ jobs: script: | const updateLeaderboard = require('./.github/updateLeaderboard.js'); const result = await updateLeaderboard({ github, context }); - return result; + core.setOutput('success', result); // Setting the output for later steps - name: Create Pull Request - if: steps.update_leaderboard.outputs.result == 'true' - uses: peter-evans/create-pull-request@v5 + if: steps.update_leaderboard.outputs.success == 'true' + uses: peter-evans/create-pull-request@v7.0.5 with: + token: ${{ secrets.GH_TOKEN }} branch: update-leaderboard commit-message: ':sparkles: Update leaderboard' title: 'Update Leaderboard'