Cleanup after CI tests #1121
This file contains 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 after CI tests" | |
on: | |
schedule: | |
- cron: 0 5 * * * | |
jobs: | |
posttest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout commit | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Setup Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python -m pip install -r requirements/cleanup.txt | |
- name: Delete test image | |
env: | |
GH_USERNAME: ${{ secrets.GH_CONTAINERS_CLEANUP_USERNAME }} | |
GH_PASSWORD: ${{ secrets.GH_CONTAINERS_CLEANUP_PAT }} | |
GH_REPO_NAME: neuro-extras | |
STALE_DAYS: "7" | |
run: | | |
python .github/workflows/cleanup.py |