Skip to content

Add scripts to fetch stars, downloads and pulls #4

Add scripts to fetch stars, downloads and pulls

Add scripts to fetch stars, downloads and pulls #4

name: Update GitHub Stars From GitHub API
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
- cron: '0 8 * * 1' # Runs at 8:00 AM every Monday
jobs:
fetchAndUpdate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update files after fetching data from GitHub API
run: |
python docs/tools/vdb_table/fetch-github-stars.py
- name: Commit and push if there are changes
run: |
git config --global user.name 'Chirag Jain'
git config --global user.email '[email protected]'
git add docs/tools/vdb_table/data/.
git commit -m "Update GitHub ⭐️" || exit 0 # Exit 0 if no changes
git push