mirror of
https://github.com/Rakantor/rakantor.git
synced 2026-09-19 08:52:00 +02:00
Create streak-stats.yml
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
name: Update streak stats
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 3 * * *" # Run every day at 03:00
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- ".github/workflows/streak-stats.yml" # Run any time this file is modified
|
||||||
|
workflow_dispatch: # Run manually from the Actions tab
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Generate streak stats
|
||||||
|
uses: DenverCoder1/github-readme-streak-stats@main
|
||||||
|
with:
|
||||||
|
options: user=${{ github.repository_owner }}&theme=github-dark&disable_animations=true
|
||||||
|
path: profile/streak.svg
|
||||||
|
token: ${{ secrets.METRICS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Commit streak stats
|
||||||
|
run: |
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
git add profile/streak.svg
|
||||||
|
git commit -m "Update streak stats" || exit 0
|
||||||
|
git push
|
||||||
Reference in New Issue
Block a user