mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
26 lines
582 B
YAML
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@v3
|
|
- name: setup python
|
|
uses: actions/setup-python@v4
|
|
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 }}
|