ResInsight/.github/workflows/delete_artifacts.yml
Magne Sjaastad ad34bbf125
Use latest version of actions
* Update checkout action
* Update setup-python
* Update get-current-time
* Update cache
* Update upload-artifact
2024-01-26 12:45:25 +01:00

26 lines
582 B
YAML

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 }}