diff --git a/.github/workflows/update_leaderboard.yml b/.github/workflows/update_leaderboard.yml index 668929d..2e854bc 100644 --- a/.github/workflows/update_leaderboard.yml +++ b/.github/workflows/update_leaderboard.yml @@ -20,7 +20,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install requests + pip install requests PyGithub - name: Run leaderboard update script run: | @@ -30,6 +30,6 @@ jobs: run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" - git add leaderboard.md - git commit -m "Update leaderboard" - git push + git add leaderboard.md || echo "No changes to commit" # Prevent errors if there's nothing to commit + git commit -m "Update leaderboard" || echo "No changes to commit" + git push || echo "Nothing to push"