feat: added nightly cleanup — cron-job style
This commit is contained in:
@@ -48,6 +48,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
|
||||
.github\workflows\codeql-analysis.yml = .github\workflows\codeql-analysis.yml
|
||||
.github\workflows\devskim-analysis.yml = .github\workflows\devskim-analysis.yml
|
||||
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
|
||||
nightly_cleanup.yml = nightly_cleanup.yml
|
||||
.github\workflows\sonar-cloud.yml = .github\workflows\sonar-cloud.yml
|
||||
EndProjectSection
|
||||
EndProject
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
name: 'nightly artifacts cleanup'
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 4 * * *' # every night at 4 am UTC
|
||||
|
||||
jobs:
|
||||
delete-artifacts:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: kolpav/purge-artifacts-action@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
expire-in: 7days # Setting this to 0 will delete all artifacts
|
||||
Reference in New Issue
Block a user