-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.13 KB
/
cleanup.yml
File metadata and controls
39 lines (32 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Cleanup Staging Bucket
on:
# Run once a week at 02:00 UTC on Sunday
schedule:
- cron: "0 2 * * 0"
# Also allow manual triggering from the Actions tab
workflow_dispatch:
jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.3.0
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.1
- name: Install project and dependencies
run: |
uv sync --all-extras --dev
uv pip install -e . --no-deps
- name: Run Cleanup Script
run: uv run .github/scripts/cleanup_staging_bucket.py
env:
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
R2_STAGING_BUCKET: ${{ vars.R2_STAGING_BUCKET }}