We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 166234f commit 95e4081Copy full SHA for 95e4081
1 file changed
.github/workflows/traffic-stats.yml
@@ -0,0 +1,41 @@
1
+
2
+name: Update Traffic Stats
3
4
5
+on:
6
7
+ push:
8
+ branches:
9
+ - main
10
11
+ workflow_dispatch:
12
+ schedule:
13
+ - cron: '0 0 * * *'
14
15
16
+jobs:
17
+ update-traffic:
18
19
+ runs-on: ubuntu-latest
20
21
+ steps:
22
23
+ - name: Checkout repository
24
+ uses: actions/checkout@v4
25
26
27
+ - name: Update traffic and generate badges
28
29
+ uses: yi-Xu-0100/traffic-to-badge@v1.5.0
30
+ with:
31
+ my_token: ${{ secrets.GITHUB_TOKEN }}
32
33
+ traffic_branch: traffic
34
35
36
+ views_label: 'Total Views'
37
+ clones_label: 'Total Clones'
38
39
40
+ views_color: 'blue'
41
+ clones_color: 'brightgreen'
0 commit comments