Skip to content

fix: only support python 3.10 during continuous integration (#65) #2

fix: only support python 3.10 during continuous integration (#65)

fix: only support python 3.10 during continuous integration (#65) #2

Workflow file for this run

---
name: Update Badges
on: # yamllint disable-line rule:truthy
push:
branches: ["main"]
workflow_dispatch: # Allow manual triggering
jobs:
update-badges:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Update badges
run: |
python3 scripts/update_badges.py
- name: Check for changes
id: verify-changed-files
run: |
if git diff --quiet; then
echo "changed=false" >> $GITHUB_OUTPUT
else
echo "changed=true" >> $GITHUB_OUTPUT
fi
- name: Commit changes
if: steps.verify-changed-files.outputs.changed == 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md
git commit -m "docs: update problem count badges [skip ci]"
git push