Skip to content

Update Profile and Deploy Pages #70

Update Profile and Deploy Pages

Update Profile and Deploy Pages #70

name: Update Repository States
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
refresh:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: requirements.txt
- run: pip install -r requirements.txt
- name: Update README
env:
GITHUB_TOKEN: ${{ github.token }}
DAYS_STALE: 30
DAYS_OBSOLETE: 180
run: python scripts/update_readme.py
- name: Commit and push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if [[ -n $(git status --porcelain) ]]; then
git add profile/README.md
git commit -m "chore: auto-refresh status column"
git push
else
echo "README already up-to-date."
fi