Create main.yml

imgbot
CTome 2022-05-15 05:05:50 +01:00 committed by GitHub
parent 7710131f3d
commit 48ada72359
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 41 additions and 0 deletions

41
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,41 @@
# Visit https://github.com/lowlighter/metrics/blob/master/action.yml for full reference
name: Metrics
on:
# Schedule updates (each hour)
schedule: [{cron: "0 * * * *"}]
# Lines below let you run workflow manually and on each commit
push: {branches: ["master", "main"]}
workflow_dispatch:
jobs:
github-metrics:
runs-on: ubuntu-latest
steps:
- uses: lowlighter/metrics@latest
with:
# Your GitHub token
token: ${{ secrets.METRICS_TOKEN }}
# GITHUB_TOKEN is a special auto-generated token restricted to current repository, which is used to push files in it
committer_token: ${{ secrets.GITHUB_TOKEN }}
# Options
user: CrimsonTome
template: classic
base: header, activity, community, repositories, metadata
config_timezone: America/New_York
plugin_activity: yes
plugin_activity_days: 14
plugin_activity_filter: all
plugin_activity_limit: 5
plugin_isocalendar: yes
plugin_languages: yes
plugin_languages_colors: github
plugin_languages_threshold: 0%
plugin_lines: yes # Limit to 4 entries
plugin_projects_descriptions: yes # Display projects descriptions
plugin_followup: yes
plugin_followup_sections: repositories, user #
plugin_habits: yes
plugin_habits_from: 200 # Use 200 events to compute habits
plugin_habits_days: 30 # Keep only events from last 14 days
plugin_habits_facts: yes # Display facts section
plugin_habits_charts: yes # Display charts section