From 8773d845e7af0fe081e3461c00b9058a315f7ce7 Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Mon, 18 Dec 2023 09:09:37 -0500 Subject: [PATCH] chore: add repo stats Signed-off-by: Todd Baert --- .github/workflows/repo-stats.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/repo-stats.yaml diff --git a/.github/workflows/repo-stats.yaml b/.github/workflows/repo-stats.yaml new file mode 100644 index 00000000..0efacc12 --- /dev/null +++ b/.github/workflows/repo-stats.yaml @@ -0,0 +1,21 @@ +# Uses https://github.com/jgehrcke/github-repo-stats to overcome the 14-day limitation of GitHub's built-in traffic statistics. +name: "Repo Stats" + +on: + schedule: + # Run this once per day, towards the end of the day for keeping the most + # recent data point most meaningful (hours are interpreted in UTC). + - cron: "0 23 * * *" + workflow_dispatch: # Allow for running this manually. + +jobs: + snapshot: + name: github-repo-stats + runs-on: ubuntu-latest + steps: + - name: run-ghrs + # Use latest release. + uses: jgehrcke/github-repo-stats@v1.4.2 + with: + databranch: github-repo-stats + ghtoken: ${{ secrets.REPO_STATS_TOKEN }} \ No newline at end of file