360 metrics report #837
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
name: 360 metrics report | |
on: | |
schedule: | |
# Runs on the first day of the month at 00:00 UTC | |
# | |
# ┌────────────── minute | |
# │ ┌──────────── hour | |
# │ │ ┌────────── day (month) | |
# │ │ │ ┌──────── month | |
# │ │ │ │ ┌────── day (week) | |
- cron: '55 23 * * *' | |
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@v3 | |
- name: Get organization repository metrics | |
uses: nicklegan/github-org-repo-metrics-action@v2.0.1 | |
with: | |
org: 360-info | |
token: ${{ secrets.ORG_TOKEN }} | |
days: 1 | |
fromdate: ${{ github.event.inputs.fromdate }} # Used for workflow dispatch input | |
todate: ${{ github.event.inputs.todate }} # Used for workflow dispatch input |