11name : Code
22
33on :
4+ schedule :
5+ - cron : " 0 */2 * * *" # Every 2 hours
46 pull_request :
57 branches :
6- - main # ✅ Change this if your default branch is different
8+ - main
79 workflow_dispatch :
8- # schedule:
9- # - cron: "0 0 * * *" # Every day at 00:00 UTC
10- # - cron: "0 10 * * *" # Every day at 10:00 UTC
11- # - cron: "0 16 * * *" # Every day at 16:00 UTC
12- # - cron: "0 22 * * *" # Every day at 22:00 UTC
1310
1411permissions :
15- contents : write # ✅ To push updates or create PRs
16- actions : read # ✅ To allow action execution
12+ contents : write
13+ actions : read
1714
1815jobs :
1916 metrics :
2017 runs-on : ubuntu-latest
2118
2219 steps :
23- # 1️⃣ Checkout your profile repo
2420 - name : 🦑 Checkout repo
2521 uses : actions/checkout@v4
2622 with :
2723 fetch-depth : 0
2824 persist-credentials : false
2925
30- # 2️⃣ Install jq (required by lowlighter/metrics)
3126 - name : 🦑 Install jq
3227 run : |
3328 sudo apt-get update
3429 sudo apt-get install -y jq
3530
36- # Code
3731 - name : 🐙Code
3832 if : ${{ success() || failure() }}
3933 uses : lowlighter/metrics@latest
@@ -46,14 +40,12 @@ jobs:
4640 plugin_code : yes
4741 plugin_code_lines : 12
4842 plugin_code_visibility : public
49- plugin_code_languages : python
43+ plugin_code_languages : python
5044
51-
52- # 9️⃣ Commit & push all SVG updates to a PR
5345 - name : 🦑 Commit & Create PR
5446 uses : peter-evans/create-pull-request@v6
5547 with :
5648 token : ${{ secrets.GH_METRICS_TOKEN }}
5749 branch : metrics-update
5850 title : " chore: update all metrics SVGs"
59- body : " Auto-generated metrics via iamAntimPal /metrics"
51+ body : " Auto-generated metrics via lowlighter /metrics"
0 commit comments