Skip to content

Commit

Permalink
🌐 update workflow github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunhThanhDe committed Nov 4, 2024
1 parent f9a9d97 commit 275ac8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/update_leaderboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 275ac8d

Please sign in to comment.