Add scripts to fetch stars, downloads and pulls #2
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 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 |