-
Notifications
You must be signed in to change notification settings - Fork 14
35 lines (28 loc) · 1.05 KB
/
ci-clean-project.yml
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
name: "CI: Clean Project"
on:
schedule:
# Run workflow at the start of every day (11 PM UTC)
- cron: "0 23 * * *"
jobs:
check_versions:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11' # >=3.11 for datetime.fromisoformat()
- name: Install Golioth Python Tools
run: |
pip install git+https://github.com/golioth/[email protected]
- name: Remove old asset from Prod
run: |
python3 scripts/ci/clean_ci_project "${{ secrets.PROD_CI_PROJECT_API_KEY }}" \
--api-url "https://api.golioth.io" \
--days-old 1
- name: Remove old asset from Dev
run: |
python3 scripts/ci/clean_ci_project "${{ secrets.DEV_CI_PROJECT_API_KEY }}" \
--api-url "https://api.golioth.dev" \
--days-old 1