forked from superlinked/VectorHub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jumpfast-tech/source_url
Add scripts to fetch stars, downloads and pulls
- Loading branch information
Showing
40 changed files
with
1,034 additions
and
75 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Update Stars, Pulls and Downloads From APIs | ||
|
||
on: | ||
# pull_request: | ||
# branches: | ||
# - main | ||
schedule: | ||
- cron: '*/1 * * * *' # Runs at 8:00 AM every Monday | ||
|
||
jobs: | ||
fetchAndUpdate: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.DATA_PUSH_TOKEN }} | ||
|
||
- name: Add dependencies | ||
run: | | ||
python -m pip install requests | ||
- name: Update files after fetching data from APIs | ||
run: | | ||
python docs/tools/vdb_table/fetch-data.py | ||
- name: Commit and push if there are changes | ||
env: | ||
GIT_AUTHOR_NAME: Chirag Jain | ||
GIT_AUTHOR_EMAIL: [email protected] | ||
GIT_COMMITTER_NAME: Chirag Jain | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
GITHUB_TOKEN: ${{ secrets.DATA_PUSH_TOKEN }} | ||
run: | | ||
git add docs/tools/vdb_table/data/. | ||
git commit -m "Update Stars, Pulls & Downloads" || exit 0 # Exit 0 if no changes | ||
git push |
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
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
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
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
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
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
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
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
Oops, something went wrong.