Generate GitHub Metrics #9
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: Generate GitHub Metrics | |
| on: | |
| schedule: | |
| - cron: "0 6 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| github-metrics: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Generate GitHub Metrics | |
| uses: lowlighter/metrics@v3.34 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| user: Udhayaboopathi | |
| template: classic | |
| base: header, activity, community, repositories, metadata | |
| repositories_batch: 50 | |
| config_timezone: Asia/Kolkata | |
| config_display: large | |
| plugin_languages: yes | |
| plugin_languages_limit: 8 | |
| plugin_languages_sections: most-used | |
| plugin_isocalendar: yes | |
| plugin_isocalendar_duration: half-year | |
| plugin_stars: yes | |
| plugin_stars_limit: 4 | |
| plugin_followup: yes | |
| plugin_notable: yes | |
| plugin_notable_types: commit, pull_request, issue | |
| filename: metrics.svg | |
| output_action: none | |
| - name: Copy metrics to assets | |
| run: cp /metrics_renders/metrics.svg assets/github-metrics.svg | |
| - name: Commit metrics | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| author_name: github-actions[bot] | |
| author_email: 41898282+github-actions[bot]@users.noreply.github.com | |
| message: "chore: update GitHub metrics" | |
| add: assets/github-metrics.svg |