Skip to content

Org Repo Metrics Report #7

Org Repo Metrics Report

Org Repo Metrics Report #7

name: Org Repo Metrics Report
on:
schedule:
# Runs on the first day of the month at 00:00 UTC
#
# ┌────────────── minute
# │ ┌──────────── hour
# │ │ ┌────────── day (month)
# │ │ │ ┌──────── month
# │ │ │ │ ┌────── day (week)
- cron: '0 0 1 * *'
workflow_dispatch:
inputs:
fromdate:
description: 'Optional interval start date (format: yyyy-mm-dd)'
required: false # Skipped if workflow dispatch input is not provided
todate:
description: 'Optional interval end date (format: yyyy-mm-dd)'
required: false # Skipped if workflow dispatch input is not provided
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
org-repo-metrics-report:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get organization repository metrics
uses: nicklegan/github-org-repo-metrics-action@v2.0.1
with:
token: ${{ secrets.ORG_TOKEN }}
fromdate: ${{ github.event.inputs.fromdate }} # Used for workflow dispatch input
todate: ${{ github.event.inputs.todate }} # Used for workflow dispatch input
# org: ''
# days: '30'
# stale: '14'
# old: '120'
# sort: 'openedPullRequests'
# sort-order: 'desc'
# json: 'false'
# diff-report: 'false'
# committer-name: 'GitHub Actions'
# committer-email: 'no-reply@actions.github.com'
appid: ${{ secrets.APPID }}
privatekey: ${{ secrets.PRIVATEKEY }}
installationid: ${{ secrets.INSTALLATIONID }}