.github/workflows/example-repometrics.yml #317
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |