Update Profile and Deploy Pages #30
This file contains hidden or 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
| 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' | |
| - run: pip install PyGithub | |
| - 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 | |