Skip to content

切换为:github-org-repo-metrics-action #5

切换为:github-org-repo-metrics-action

切换为:github-org-repo-metrics-action #5

name: Org Repo Metrics Report
on:
push:
# 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
jobs:
org-repo-metrics-report:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get organization repository metrics
uses: nicklegan/github-org-repo-metrics-action@v2.1.0
with:
token: ${{ secrets.ACTIVITY_REPORT }}
fromdate: ${{ github.event.inputs.fromdate }} # Used for workflow dispatch input
todate: ${{ github.event.inputs.todate }} # Used for workflow dispatch input
# org: ''
# team: ''
# days: '30'
# stale: '14'
# old: '120'
# sort: 'openedPullRequests'
# sort-order: 'desc'
# json: 'false'
# diff-report: 'false'
# appid: ${{ secrets.APPID }}
# privatekey: ${{ secrets.PRIVATEKEY }}
# installationid: ${{ secrets.INSTALLATIONID }}