Skip to content

Generate Mario Contribution Graph #30

Generate Mario Contribution Graph

Generate Mario Contribution Graph #30

Workflow file for this run

name: Generate Mario Contribution Graph
on:
schedule:
- cron: "0 0 * * *" # Runs daily at midnight
workflow_dispatch: # Allows you to run it manually
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Generate Mario SVG
# We pass the token and your username to the Python script here
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.repository_owner }}
run: python generate_mario.py
- name: Commit and Push SVG
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add mario_contribution.svg
git commit -m "Update Mario contribution graph with real data" || echo "No changes to commit"
git push