Skip to content

Commit

Permalink
Merge pull request #178 from rohitinu6/jvedsaqib-patch-2
Browse files Browse the repository at this point in the history
Create update_leaderboard.yml
  • Loading branch information
rohitinu6 authored Oct 24, 2024
2 parents b82d801 + 93d0738 commit 35e4125
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/update_leaderboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Update Leaderboard

on:
pull_request:
types: [closed]

jobs:
update-leaderboard:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Run leaderboard update script
run: |
python .github/scripts/update_structure.py
- name: Commit and push changes
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

0 comments on commit 35e4125

Please sign in to comment.