From 48ada72359cc94aed3888e45c52223189ead0c7f Mon Sep 17 00:00:00 2001 From: CTome <64846840+CrimsonTome@users.noreply.github.com> Date: Sun, 15 May 2022 05:05:50 +0100 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..b55fbe36 --- /dev/null +++ b/.github/workflows/main.yml @@ -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