Skip to content

Recycle Runs

Recycle Runs #122

Workflow file for this run

name: "Recycle Runs"
on:
schedule:
- cron: '0 19 * * *'
workflow_dispatch:
permissions:
actions: write
contents: read
concurrency:
group: lock
jobs:
recycle-workflow-runs:
runs-on: ubuntu-latest
if: github.repository_owner == 'researchxxl'
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install requests python-dateutil
- name: Run workflow cleanup
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
run: |
python .github/scripts/recycle-workflow-runs.py