-
Notifications
You must be signed in to change notification settings - Fork 64
42 lines (38 loc) · 1.07 KB
/
cleanup.yml
File metadata and controls
42 lines (38 loc) · 1.07 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
40
41
42
name: Cleaning
on:
#schedule:
# - cron: 1 8 * * 1
# watch:
# types: started
workflow_dispatch:
jobs:
#Cleanup-Old-Releases:
# runs-on: ubuntu-20.04
# if: github.event.repository.owner.id == github.event.sender.id
# steps:
# - name: Delete Older Releases
# uses: dev-drprasad/delete-older-releases@master
# with:
# keep_latest: 4
# delete_tags: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Cleanup-Old-Artifacts:
runs-on: ubuntu-20.04
if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Cleanup Old Action Artifacts
uses: kolpav/purge-artifacts-action@master
with:
token: ${{ github.token }}
expire-in: 3d
Cleanup-Workflow-Logs:
runs-on: ubuntu-20.04
if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Cleanup Workflow Logs
uses: Mattraks/delete-workflow-runs@main
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 3