Files
metrics/action.yml
2020-10-18 01:10:43 +02:00

46 lines
1.5 KiB
YAML

name: GitHub metrics as SVG image
author: lowlighter
description: Generate an user's GitHub metrics as SVG image format to embed somewhere else
branding:
icon: user-check
color: gray-dark
inputs:
token:
description: GitHub Personal Token
required: true
committer_token:
description: If provided, this token will be used instead of "token" for commit operations (you can specify a bot account to avoid virtually increasing your stats due to this action commits)
default: ""
user:
description: GitHub username
default: ""
filename:
description: Name of SVG image output
default: github-metrics.svg
optimize:
description: Optimize SVG image
default: yes
plugin_pagespeed:
description: Enable Google PageSpeed metrics for account attached website
default: no
pagespeed_token:
description: Google Pagespeed Personal Token (*see https://developers.google.com/speed/docs/insights/v5/get-started for more informations)
default: ""
plugin_lines:
description: Enable lines of code metrics
default: no
plugin_traffic:
description: Enable repositories traffic metrics (*provided GitHub token require full "repo" permissions)
default: no
plugin_habits:
description: Enable coding habits metrics
default: no
plugin_selfskip:
description: Skip commits flagged with [Skip GitHub Action] from commits count
default: no
debug:
description: Enable debug logs
default: no
runs:
using: node12
main: action/dist/index.js