Metrics #195
This file contains hidden or 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
| name: Metrics | |
| on: | |
| # Run once a week | |
| schedule: [{cron: "0 0 * * 0"}] | |
| # (optional) Run workflow manually | |
| workflow_dispatch: | |
| # (optional) Run workflow when pushing on master/main | |
| push: {branches: ["master", "main"]} | |
| jobs: | |
| github-metrics: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Sponsors introduction | |
| uses: zicklag/metrics@latest | |
| with: | |
| filename: .metrics/sponsors.svg | |
| token: ${{ secrets.METRICS_TOKEN }} | |
| base: "" | |
| plugin_sponsors: yes | |
| - uses: zicklag/metrics@latest | |
| with: | |
| filename: .metrics/achievements.svg | |
| token: ${{ secrets.METRICS_TOKEN }} | |
| committer_token: ${{ secrets.GITHUB_TOKEN }} | |
| user: Zicklag | |
| base: achievements | |
| plugin_achievements: yes | |
| plugin_achievements_threshold: B # Display achievements with rank B or higher | |
| plugin_achievements_secrets: yes # Display unlocked secrets achievements | |
| plugin_achievements_display: detailed # Use compact display | |
| plugin_achievements_limit: 0 # Display all unlocked achievements (no limit) | |
| - name: header | |
| uses: zicklag/metrics@latest | |
| with: | |
| filename: .metrics/header.svg | |
| # You'll need to setup a personal token in your secrets. | |
| token: ${{ secrets.METRICS_TOKEN }} | |
| # GITHUB_TOKEN is a special auto-generated token used for commits | |
| committer_token: ${{ secrets.GITHUB_TOKEN }} | |
| # Options | |
| user: zicklag | |
| template: classic | |
| base: header | |
| #config_timezone: ${{ secrets.USER_TIMEZONE }} | |
| - name: lines | |
| uses: zicklag/metrics@latest | |
| with: | |
| filename: .metrics/lines-of-code.svg | |
| token: ${{ secrets.METRICS_TOKEN }} | |
| committer_token: ${{ secrets.GITHUB_TOKEN }} | |
| base: "repositories" | |
| plugin_lines: yes | |
| - name: acti_comm | |
| uses: zicklag/metrics@latest | |
| with: | |
| filename: .metrics/acti_comm.svg | |
| # You'll need to setup a personal token in your secrets. | |
| token: ${{ secrets.METRICS_TOKEN }} | |
| # GITHUB_TOKEN is a special auto-generated token used for commits | |
| committer_token: ${{ secrets.GITHUB_TOKEN }} | |
| # Options | |
| user: Zicklag | |
| template: classic | |
| base: activity, community | |
| #config_timezone: ${{ secrets.USER_TIMEZONE }} | |
| - name: iso_calendar | |
| uses: zicklag/metrics@latest | |
| with: | |
| filename: .metrics/iso_calender.svg | |
| # You'll need to setup a personal token in your secrets. | |
| token: ${{ secrets.METRICS_TOKEN }} | |
| # GITHUB_TOKEN is a special auto-generated token used for commits | |
| committer_token: ${{ secrets.GITHUB_TOKEN }} | |
| # Options | |
| user: Zicklag | |
| template: classic | |
| base: "" | |
| #config_timezone: ${{ secrets.USER_TIMEZONE }} | |
| plugin_isocalendar: yes | |
| plugin_isocalendar_duration: half-year | |
| - name: issue_pr_lang | |
| uses: zicklag/metrics@latest | |
| with: | |
| filename: .metrics/issue_pr_lang.svg | |
| # You'll need to setup a personal token in your secrets. | |
| token: ${{ secrets.METRICS_TOKEN }} | |
| # GITHUB_TOKEN is a special auto-generated token used for commits | |
| committer_token: ${{ secrets.GITHUB_TOKEN }} | |
| # Options | |
| user: katharostech | |
| template: classic | |
| base: "" | |
| #config_timezone: ${{ secrets.USER_TIMEZONE }} | |
| plugin_followup: yes | |
| plugin_languages: yes | |
| - name: repositories | |
| uses: zicklag/metrics@latest | |
| with: | |
| filename: .metrics/repositories.svg | |
| # You'll need to setup a personal token in your secrets. | |
| token: ${{ secrets.METRICS_TOKEN }} | |
| # GITHUB_TOKEN is a special auto-generated token used for commits | |
| committer_token: ${{ secrets.GITHUB_TOKEN }} | |
| # Options | |
| user: Zicklag | |
| template: classic | |
| base: repositories | |
| #config_timezone: ${{ secrets.USER_TIMEZONE }} |