Skip to content

Commit 033b697

Browse files
committed
adding stats workflow
1 parent 72cf6bc commit 033b697

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/save-stats.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
schedule:
3+
- cron: "0 23 * * *"
4+
workflow_dispatch:
5+
6+
jobs:
7+
j1:
8+
name: collect-repo-stats
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: run-ghrs
12+
uses: jgehrcke/github-repo-stats@RELEASE
13+
with:
14+
# Define the stats repository (the repo to fetch
15+
# stats for and to generate the report for).
16+
# Remove the parameter when the stats repository
17+
# and the data repository are the same.
18+
repository: Classiq/library-stats
19+
# Set a GitHub API token that can read the GitHub
20+
# repository traffic API for the stats repository,
21+
# and that can push commits to the data repository
22+
# (which this workflow file lives in, to store data
23+
# and the report files).
24+
ghtoken: ${{ secrets.LIBRARY_STATS_API_TOKEN }}

0 commit comments

Comments
 (0)