-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (40 loc) · 2.6 KB
/
media-library-cleanup.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Media Library Cleanup
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
env:
ASTRO_CLOUDINARY_CLOUDINARY_CLOUD_NAME: ${{ secrets.ASTRO_CLOUDINARY_CLOUDINARY_CLOUD_NAME }}
ASTRO_CLOUDINARY_CLOUDINARY_API_KEY: ${{ secrets.ASTRO_CLOUDINARY_CLOUDINARY_API_KEY }}
ASTRO_CLOUDINARY_CLOUDINARY_API_SECRET: ${{ secrets.ASTRO_CLOUDINARY_CLOUDINARY_API_SECRET }}
COLBYCLOUD_APPS_CLOUDINARY_CLOUD_NAME: ${{ secrets.COLBYCLOUD_APPS_CLOUDINARY_CLOUD_NAME }}
COLBYCLOUD_APPS_CLOUDINARY_API_KEY: ${{ secrets.COLBYCLOUD_APPS_CLOUDINARY_API_KEY }}
COLBYCLOUD_APPS_CLOUDINARY_API_SECRET: ${{ secrets.COLBYCLOUD_APPS_CLOUDINARY_API_SECRET }}
COLBYCLOUD_EXAMPLES_CLOUDINARY_CLOUD_NAME: ${{ secrets.COLBYCLOUD_EXAMPLES_CLOUDINARY_CLOUD_NAME }}
COLBYCLOUD_EXAMPLES_CLOUDINARY_API_KEY: ${{ secrets.COLBYCLOUD_EXAMPLES_CLOUDINARY_API_KEY }}
COLBYCLOUD_EXAMPLES_CLOUDINARY_API_SECRET: ${{ secrets.COLBYCLOUD_EXAMPLES_CLOUDINARY_API_SECRET }}
COLBYCLOUD_MEDIA_JAMS_CLOUDINARY_CLOUD_NAME: ${{ secrets.COLBYCLOUD_MEDIA_JAMS_CLOUDINARY_CLOUD_NAME }}
COLBYCLOUD_MEDIA_JAMS_CLOUDINARY_API_KEY: ${{ secrets.COLBYCLOUD_MEDIA_JAMS_CLOUDINARY_API_KEY }}
COLBYCLOUD_MEDIA_JAMS_CLOUDINARY_API_SECRET: ${{ secrets.COLBYCLOUD_MEDIA_JAMS_CLOUDINARY_API_SECRET }}
NEXT_CLOUDINARY_CLOUDINARY_CLOUD_NAME: ${{ secrets.NEXT_CLOUDINARY_CLOUDINARY_CLOUD_NAME }}
NEXT_CLOUDINARY_CLOUDINARY_API_KEY: ${{ secrets.NEXT_CLOUDINARY_CLOUDINARY_API_KEY }}
NEXT_CLOUDINARY_CLOUDINARY_API_SECRET: ${{ secrets.NEXT_CLOUDINARY_CLOUDINARY_API_SECRET }}
NUXT_CLOUDINARY_CLOUDINARY_CLOUD_NAME: ${{ secrets.NUXT_CLOUDINARY_CLOUDINARY_CLOUD_NAME }}
NUXT_CLOUDINARY_CLOUDINARY_API_KEY: ${{ secrets.NUXT_CLOUDINARY_CLOUDINARY_API_KEY }}
NUXT_CLOUDINARY_CLOUDINARY_API_SECRET: ${{ secrets.NUXT_CLOUDINARY_CLOUDINARY_API_SECRET }}
SPACEJELLY_TUTORIALS_CLOUDINARY_CLOUD_NAME: ${{ secrets.SPACEJELLY_TUTORIALS_CLOUDINARY_CLOUD_NAME }}
SPACEJELLY_TUTORIALS_CLOUDINARY_API_KEY: ${{ secrets.SPACEJELLY_TUTORIALS_CLOUDINARY_API_KEY }}
SPACEJELLY_TUTORIALS_CLOUDINARY_API_SECRET: ${{ secrets.SPACEJELLY_TUTORIALS_CLOUDINARY_API_SECRET }}
SVELTE_CLOUDINARY_CLOUDINARY_CLOUD_NAME: ${{ secrets.SVELTE_CLOUDINARY_CLOUDINARY_CLOUD_NAME }}
SVELTE_CLOUDINARY_CLOUDINARY_API_KEY: ${{ secrets.SVELTE_CLOUDINARY_CLOUDINARY_API_KEY }}
SVELTE_CLOUDINARY_CLOUDINARY_API_SECRET: ${{ secrets.SVELTE_CLOUDINARY_CLOUDINARY_API_SECRET }}
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "latest"
- run: npm ci
- run: node src/media-library-cleanup.js