mirror of
https://github.com/Stone-Red-Code/Stone-Red-Code.git
synced 2026-09-04 09:06:27 +02:00
This workflow updates README cards by generating stats and committing them to the repository.
29 lines
730 B
YAML
29 lines
730 B
YAML
name: Update README cards
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 3 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Generate stats card
|
|
uses: readme-tools/github-readme-stats-action@v1
|
|
with:
|
|
card: stats
|
|
options: username=${{ github.repository_owner }}&show_icons=true
|
|
path: profile/stats.svg
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Commit cards
|
|
run: |
|
|
git config user.name "github-actions"
|
|
git config user.email "[email protected]"
|
|
git add profile/*.svg
|
|
git commit -m "Update README cards" || exit 0
|
|
git push
|