Create 29_rust_and_machine_learning.md #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |