Remove old artifacts #1375
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: Remove old artifacts | |
on: | |
schedule: | |
# Every day at 1am | |
- cron: "0 1 * * *" | |
jobs: | |
remove-old-artifacts: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Remove old artifacts | |
run: | | |
python -m pip install --upgrade pip | |
pip install urllib3 requests | |
cd .github/workflows | |
python delete_artifacts.py ${{ secrets.GITHUB_TOKEN }} |