Skip to content

Github Repo Statistics #74

Github Repo Statistics

Github Repo Statistics #74

Workflow file for this run

name: Github Repo Statistics
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:
repostats:
runs-on: ubuntu-latest
environment:
name: github-app-ocio-github-repo-statistics
steps:
- name: Get Github App token
if: github.ref == 'refs/heads/master'
id: generate_token
run: |
echo "${{ secrets.PRIVATE_KEY }}" > private.pem
result=$(npx github-app-installation-token \
--appId ${{ vars.APP_ID }} \
--installationId ${{ vars.INSTALLATION_ID }} \
--privateKeyLocation private.pem)
echo "TOKEN=$result" >> "$GITHUB_OUTPUT"
- name: run github repository stats
uses: jgehrcke/[email protected]
with:
ghtoken: ${{ steps.generate_token.outputs.TOKEN }}
ghpagesprefix: https://cdcgov.github.io/Opioid_SUD_MHI_MedCodes