Initialize modern 3D profile README on Gitea
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user