Create scheduled-stats.yml
authorDominic Létourneau <dominic.letourneau@usherbrooke.ca>
Tue, 9 Apr 2024 12:51:53 +0000 (08:51 -0400)
committerGitHub <noreply@github.com>
Tue, 9 Apr 2024 12:51:53 +0000 (08:51 -0400)
.github/workflows/scheduled-stats.yml [new file with mode: 0644]

diff --git a/.github/workflows/scheduled-stats.yml b/.github/workflows/scheduled-stats.yml
new file mode 100644 (file)
index 0000000..b6d4a3e
--- /dev/null
@@ -0,0 +1,16 @@
+name: ODAS Scheduled Stats Extraction From GitHub
+
+on:
+    workflow_dispatch:
+    schedule:
+        - cron: '0 5 * * *'
+jobs:
+    get_stats:
+        runs-on: ubuntu-latest
+        steps:
+            - name: Update Stats
+              uses: introlab/github-stats-action@v1
+              with:
+                  github-stats-token: ${{ secrets.STATS_TOKEN }}
+                  google-application-credentials: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
+                  spreadsheet-id: ${{ secrets.SPREADSHEET_ID }}