From 796d6e23e32fc7e57dbe45f9bbb01df5edfc8076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20M=C3=A9ndez?= Date: Mon, 25 Mar 2024 10:03:41 -0500 Subject: [PATCH] Added github action to calculate repo stats --- .github/workflows/gh-repo-stats.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/gh-repo-stats.yml diff --git a/.github/workflows/gh-repo-stats.yml b/.github/workflows/gh-repo-stats.yml new file mode 100644 index 0000000..db58d92 --- /dev/null +++ b/.github/workflows/gh-repo-stats.yml @@ -0,0 +1,20 @@ +# Stores GitHub repo stats daily, to overcome the 14-day limitation of GitHub's built-in traffic statistics. +name: github-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: "30 23 * * *" + workflow_dispatch: # Allow for running this manually. + +jobs: + j1: + name: github-repo-stats + runs-on: ubuntu-latest + steps: + - name: run-ghrs + # Use latest release. + uses: jgehrcke/github-repo-stats@RELEASE + with: + ghtoken: ${{ secrets.GHRS_GITHUB_API_TOKEN }}