Skip to content

Create 27_graphics_programming.md #45

Create 27_graphics_programming.md

Create 27_graphics_programming.md #45

name: Update Progress Badge
on:
push:
branches:
- main
workflow_dispatch: # Manual trigger option
jobs:
update-progress-badge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install requests # You can add any other dependencies you need
- name: Calculate Progress and Update README
run: |
python src/calculate_progress.py ${{ github.repository_owner }} ${{ secrets.GITHUB_TOKEN }} README.md
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "GitHub Actions"
git add README.md
git diff-index --quiet HEAD || git commit -m "Update progress badge"
- name: Pull changes
run: git pull -r
- name: Push changes
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df
with:
github_token: ${{ secrets.GITHUB_TOKEN }}