developer-portfolios/.github/workflows/update-banner.yml
2024-07-15 08:10:12 -04:00

31 lines
674 B
YAML

name: Update List Count Banner
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- master
push:
branches:
- master
jobs:
update-banner:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Count list items and update README
run: python3 src/update_banner.py
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add README.md
git commit -m "Update list count in README" -a || echo "No changes to commit"
git push