Skip to content

Nightshift Cleanup

Nightshift Cleanup #20

name: Nightshift Cleanup
on:
schedule:
- cron: '0 10 * * 1-5'
workflow_dispatch: {}
concurrency:
group: nightshift-cleanup
cancel-in-progress: false
jobs:
cleanup:
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
actions: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install Claude Code
run: npm install -g @anthropic-ai/claude-code
- name: Run cleanup agent
env:
CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
GH_TOKEN: ${{ github.token }}
run: python infra/scripts/nightshift_cleanup.py