Skip to content

Cleanup after CI tests #1042

Cleanup after CI tests

Cleanup after CI tests #1042

Workflow file for this run

name: "Cleanup after CI tests"
on:
schedule:
- cron: 0 5 * * *
jobs:
posttest:
runs-on: ubuntu-latest
steps:
- name: Checkout commit
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup Python 3.9
uses: actions/setup-python@v4
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