Repository navigation
Cleanup #67
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
| name: Cleanup | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '00 3 * * 1-5' | |
| jobs: | |
| run_and_commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: 3 | |
| - name: Run cleanup | |
| run: python cleanup.py | |
| - name: Commit Changes | |
| run: | | |
| git config --global user.name 'GitHub Actions' | |
| git config --global user.email 'actions@github.com' | |
| git add . | |
| git commit -m "Github Actions - Daily Reports Cleanup" | |
| git push |