Skip to content

Update leaderBoard data #4292

Update leaderBoard data

Update leaderBoard data #4292

name: Update leaderBoard data
on:
schedule:
# Runs every four hour
- cron: '0 */4 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node 18
uses: actions/setup-node@v2
with:
node-version: 18.x
- run: |
npm install
npm run 2.GetData
npm run 3.MakeLeaderBoard
- name: Commit and push changes
run: |
git config --global user.name "jhamadhav"
git config --global user.email "[email protected]"
git add -A
git commit -m "Leaderboard Updated"
git push