Files
.profile/.github/workflows/profile-stats.yml
T
vaishnosingh 82d25928e8
Update Profile Telemetry SVGs / update-svg-assets (push) Canceled after 0s
Generate Snake Animation / generate (push) Canceled after 0s
Initialize modern 3D profile README on Gitea
2026-11-17 17:27:43 +05:30

39 lines
1.1 KiB
YAML

name: Update Profile Telemetry SVGs
on:
schedule:
- cron: "0 */12 * * *" # Runs every 12 hours
workflow_dispatch:
push:
branches: [main, master]
paths:
- "scripts/profile_stats.py"
permissions:
contents: write
jobs:
update-svg-assets:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Generate Custom SVG Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
run: python scripts/profile_stats.py
- name: Commit & Push Updated SVGs
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add assets/*.svg
git diff --quiet && git diff --staged --quiet || (git commit -m "chore(telemetry): auto-update profile SVG assets" && git push)