Skip to content

Add scripts to fetch stars, downloads and pulls #2

Add scripts to fetch stars, downloads and pulls

Add scripts to fetch stars, downloads and pulls #2

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: Fetch data from GitHub API
id: fetchdata
run: |
echo "Fetching"
- name: Update files
run: |
echo "Updating"
- 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