From 8211c4fe076029ca99c200ad2a6423ce68ab4bce Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Fri, 6 Mar 2026 01:28:12 +0100 Subject: [PATCH] Update workflow to generate and commit README cards This workflow updates README cards by generating stats and committing them to the repository. --- .github/workflows/blank.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000..8a493e2 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,28 @@ +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 "github-actions@users.noreply.github.com" + git add profile/*.svg + git commit -m "Update README cards" || exit 0 + git push