Skip to content

Update main.yml

Update main.yml #1

Workflow file for this run

name: Metrics
on:
schedule: [{cron: "0 0 * * *"}]
workflow_dispatch:
jobs:
github-metrics:
runs-on: ubuntu-latest
environment:
name: production
permissions:
contents: write
steps:
- uses: lowlighter/metrics@latest
with:
token: ${{ secrets.METRICS_TOKEN }}
user: CompPsyUnion
template: classic
base: header, activity, repositories, metadata
config_timezone: Asia/Shanghai
- uses: lowlighter/metrics@latest
with:
token: ${{ secrets.METRICS_TOKEN }}
plugin_languages: yes
plugin_languages_analysis_timeout: 15
plugin_languages_analysis_timeout_repositories: 7.5
plugin_languages_categories: markup, programming
plugin_languages_colors: github
plugin_languages_limit: 8
plugin_languages_recent_categories: markup, programming
plugin_languages_recent_days: 14
plugin_languages_recent_load: 300
plugin_languages_sections: most-used
plugin_languages_threshold: 0%
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: lowlighter/metrics@latest
with:
output_action: none
- uses: lowlighter/metrics@latest
run: |
set +e
git checkout main
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
sudo mv /metrics_renders/* ./
git add --all
git commit -m "chore: push metrics"
git push