-
-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (41 loc) · 1.59 KB
/
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
name: Cleanup
on:
workflow_dispatch:
schedule:
- cron: '0 0 */14 * *' # every 14 days
jobs:
cleanup-updater:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
suite:
- { name: 'Tingle.AspNetCore.ApplicationInsights' }
- { name: 'Tingle.AspNetCore.Authentication' }
- { name: 'Tingle.AspNetCore.Authorization' }
- { name: 'Tingle.AspNetCore.DataProtection.MongoDB' }
- { name: 'Tingle.AspNetCore.JsonPatch' }
- { name: 'Tingle.AspNetCore.JsonPatch.NewtonsoftJson' }
- { name: 'Tingle.AspNetCore.Swagger' }
- { name: 'Tingle.AspNetCore.Tokens' }
- { name: 'Tingle.Extensions.Caching.MongoDB' }
- { name: 'Tingle.Extensions.DataAnnotations' }
- { name: 'Tingle.Extensions.EntityFrameworkCore' }
- { name: 'Tingle.Extensions.Http' }
- { name: 'Tingle.Extensions.Http.Authentication' }
- { name: 'Tingle.Extensions.JsonPatch' }
- { name: 'Tingle.Extensions.MongoDB' }
- { name: 'Tingle.Extensions.Mustache' }
- { name: 'Tingle.Extensions.PhoneValidators' }
- { name: 'Tingle.Extensions.Primitives' }
- { name: 'Tingle.Extensions.Processing' }
- { name: 'Tingle.Extensions.PushNotifications' }
- { name: 'Tingle.Extensions.Serilog' }
steps:
- name: Delete old ${{ matrix.suite.name }} packages
uses: actions/delete-package-versions@v5
with:
package-name: ${{ matrix.suite.name }}
package-type: 'nuget'
min-versions-to-keep: 10
delete-only-pre-release-versions: true