Skip to content

Generate README Cards (No External Services) #14

Generate README Cards (No External Services)

Generate README Cards (No External Services) #14

Workflow file for this run

name: Generate README Cards (No External Services)
on:
schedule:
- cron: "17 2 * * *" # daily 02:17 UTC
workflow_dispatch:
permissions:
contents: write
jobs:
build-cards:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Generate SVG cards
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: brazilianscriptguy
run: |
python .github/scripts/generate_readme_cards.py
- name: Commit & push if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "chore: update README cards"
git push
fi