Skip to content

progress bar python script & github actions yml #2

progress bar python script & github actions yml

progress bar python script & github actions yml #2

name: Update Progress in Markdown
on:
push:
paths:
- '**.md'
- update_progress.py
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Run update script
run: python update_progress.py
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "Update progress" || echo "No changes to commit"
git push