Update leaderBoard data #4190
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |