Skip to content

.github/workflows/example-repometrics.yml #313

.github/workflows/example-repometrics.yml

.github/workflows/example-repometrics.yml #313

on:
# Allow for manual execution
workflow_dispatch:
# Execute on schedule
schedule:
- cron: '30 09 * * *'
jobs:
repometrics_exec:
runs-on: ubuntu-latest
env:
GHE_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GHE_METRICS_DEPTH: 25
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: npm setup
run: npm install
- name: exec orgmetrics
run: npx node app.js
- name: Save orgmetrics.json artifact
uses: actions/upload-artifact@v4
with:
name: repometrics
path: repometrics.json