Skip to content

Commit d73e9d8

Browse files
Merge pull request #57 from vector-ai/feature/update_badges
Add badge update
2 parents e3841d3 + d1f77dd commit d73e9d8

File tree

5 files changed

+36
-3
lines changed

5 files changed

+36
-3
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Update Badges
2+
3+
on:
4+
schedule:
5+
- cron: "3 * * * *"
6+
7+
jobs:
8+
run_test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Pytest 3.7
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.7'
16+
- name: Download badges
17+
run: |
18+
python -m pip install requests
19+
python utils/download_badges.py
20+
echo ${{ github.ref }}
21+
git add .
22+
git config --local user.email "[email protected]"
23+
git config --local user.name "GitHub Action"
24+
git commit -m "ci: Automated build push" -a | exit 0
25+
- name: Push changes
26+
if: github.ref == 'refs/heads/main'
27+
uses: ad-m/github-push-action@master
28+
with:
29+
github_token: ${{ secrets.SECRET_TOKEN }}
30+
branch: ${{ github.ref }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
<div align="center">
2323

24-
![TotalDownloads](https://static.pepy.tech/personalized-badge/vectorai-nightly?period=total&units=none&left_color=black&right_color=red&left_text=Total%20Downloads&?)
25-
![WeeklyDownloads](https://static.pepy.tech/personalized-badge/vectorai-nightly?period=week&units=none&left_color=black&right_color=red&left_text=Weekly%20Downloads&?)
26-
![MonthlyDownloads](https://static.pepy.tech/personalized-badge/vectorai-nightly?period=month&units=none&left_color=black&right_color=red&left_text=Monthly%20Downloads&?)
24+
![TotalDownloads](assets/total_downloads.svg)
25+
![WeeklyDownloads](assets/weekly_downloads.svg)
26+
![MonthlyDownloads](assets/monthly_downloads.svg)
2727

2828
</div>
2929
<hr>

assets/monthly_downloads.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/total_downloads.svg

Lines changed: 1 addition & 0 deletions
Loading

assets/weekly_downloads.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)