Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Pleasurecruise authored Oct 18, 2024
1 parent 3168ab3 commit c37ea84
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,47 @@ jobs:
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

0 comments on commit c37ea84

Please sign in to comment.