mirror of
https://github.com/LukeHagar/usage-statistics.git
synced 2025-12-06 04:21:55 +00:00
119 lines
2.9 KiB
YAML
119 lines
2.9 KiB
YAML
name: 'Usage Statistics Tracker'
|
|
description: 'Track download statistics across multiple platforms (NPM, GitHub, PyPI, Homebrew, PowerShell, Postman, Go)'
|
|
author: 'LukeHagar'
|
|
|
|
inputs:
|
|
# NPM Configuration
|
|
npm-packages:
|
|
description: 'Comma-separated list of NPM packages to track'
|
|
required: false
|
|
default: ''
|
|
|
|
# GitHub Configuration
|
|
github-repositories:
|
|
description: 'Comma-separated list of GitHub repositories (format: owner/repo)'
|
|
required: false
|
|
default: ''
|
|
|
|
# PyPI Configuration
|
|
pypi-packages:
|
|
description: 'Comma-separated list of PyPI packages to track'
|
|
required: false
|
|
default: ''
|
|
|
|
# Homebrew Configuration
|
|
homebrew-formulas:
|
|
description: 'Comma-separated list of Homebrew formulas to track'
|
|
required: false
|
|
default: ''
|
|
|
|
# PowerShell Configuration
|
|
powershell-modules:
|
|
description: 'Comma-separated list of PowerShell modules to track'
|
|
required: false
|
|
default: ''
|
|
|
|
# Postman Configuration
|
|
postman-collections:
|
|
description: 'Comma-separated list of Postman collection IDs to track'
|
|
required: false
|
|
default: ''
|
|
|
|
# Go Configuration
|
|
go-modules:
|
|
description: 'Comma-separated list of Go modules to track'
|
|
required: false
|
|
default: ''
|
|
|
|
# Output paths
|
|
json-output-path:
|
|
description: 'Path for JSON output file'
|
|
required: false
|
|
default: 'stats.json'
|
|
|
|
csv-output-path:
|
|
description: 'Path for CSV output file'
|
|
required: false
|
|
default: ''
|
|
|
|
report-output-path:
|
|
description: 'Path for human-readable report file'
|
|
required: false
|
|
default: ''
|
|
|
|
# README update
|
|
update-readme:
|
|
description: 'Whether to update README.md with statistics'
|
|
required: false
|
|
default: 'true'
|
|
|
|
readme-path:
|
|
description: 'Path to README file to update'
|
|
required: false
|
|
default: 'README.md'
|
|
|
|
# GitHub integration
|
|
github-token:
|
|
description: 'GitHub token for API access and commits'
|
|
required: false
|
|
default: '${{ github.token }}'
|
|
|
|
# Postman integration
|
|
postman-api-key:
|
|
description: 'Postman API key for collection statistics'
|
|
required: false
|
|
|
|
# Commit settings
|
|
commit-message:
|
|
description: 'Commit message for changes'
|
|
required: false
|
|
default: 'chore: update usage statistics [skip ci]'
|
|
|
|
# Preview mode
|
|
preview-mode:
|
|
description: 'Run in preview mode with mock data (no external API calls)'
|
|
required: false
|
|
default: 'false'
|
|
|
|
outputs:
|
|
json-output:
|
|
description: 'Path to the generated JSON file'
|
|
|
|
csv-output:
|
|
description: 'Path to the generated CSV file'
|
|
|
|
report-output:
|
|
description: 'Path to the generated report file'
|
|
|
|
total-downloads:
|
|
description: 'Total downloads across all platforms'
|
|
|
|
unique-packages:
|
|
description: 'Number of unique packages tracked'
|
|
|
|
platforms-tracked:
|
|
description: 'Comma-separated list of platforms tracked'
|
|
|
|
runs:
|
|
using: 'node20'
|
|
main: 'dist/action.js' |