-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,38 @@ | ||
# Visit https://github.com/lowlighter/metrics#-documentation for full reference | ||
name: Metrics | ||
on: | ||
# Schedule daily updates | ||
schedule: [{cron: "0 0 * * *"}] | ||
# (optional) Run workflow manually | ||
# Schedule updates (each hour) | ||
schedule: [{cron: "0 * * * *"}] | ||
# Lines below let you run workflow manually and on each commit | ||
workflow_dispatch: | ||
# (optional) Run workflow when pushing on master/main | ||
push: {branches: ["master", "main"]} | ||
jobs: | ||
github-metrics: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: production | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: lowlighter/metrics@latest | ||
with: | ||
# Your GitHub token | ||
# The following scopes are required: | ||
# - public_access (default scope) | ||
# The following additional scopes may be required: | ||
# - read:org (for organization related metrics) | ||
# - read:user (for user related data) | ||
# - read:packages (for some packages related data) | ||
# - repo (optional, if you want to include private repositories) | ||
token: ${{ secrets.METRICS_TOKEN }} | ||
|
||
# Options | ||
user: team401 | ||
template: classic | ||
base: header | ||
config_timezone: America/New_York | ||
plugin_habits: yes | ||
plugin_habits_charts: yes | ||
plugin_habits_charts_type: classic | ||
plugin_habits_days: 14 | ||
plugin_habits_from: 200 | ||
plugin_habits_languages_limit: 8 | ||
plugin_habits_languages_threshold: 0% |