2020-05-22 01:35:29 -05:00
|
|
|
name: Remove old artifacts
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# Every day at 1am
|
2022-10-13 08:22:51 -05:00
|
|
|
- cron: "0 1 * * *"
|
2020-05-22 01:35:29 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
remove-old-artifacts:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 10
|
|
|
|
|
|
|
|
steps:
|
2020-05-23 02:06:04 -05:00
|
|
|
- name: Checkout
|
2024-01-26 05:45:25 -06:00
|
|
|
uses: actions/checkout@v4
|
2020-05-23 02:06:04 -05:00
|
|
|
- name: setup python
|
2024-01-26 05:45:25 -06:00
|
|
|
uses: actions/setup-python@v5
|
2020-05-23 02:06:04 -05:00
|
|
|
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 }}
|