Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/nuget/src/SnD.Sdk-1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vitaliy authored May 30, 2024
2 parents 5edf622 + ef79b8f commit 787a4c2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cleanup-repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Remove old artifacts
on:
schedule:
- cron: '0 12 * * *' # every day at 12:00 UTC
workflow_dispatch:

jobs:
remove_old_artifacts:
name: Remove old artifacts
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

timeout-minutes: 10 # stop the task if it takes longer

steps:
- name: Delete old package versions of arcane-operator
uses: actions/[email protected]
with:
package-name: 'arcane-operator'
package-type: container
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 10
delete-only-pre-release-versions: "true"

- name: Delete old package versions of helm/arcane-operator
uses: actions/[email protected]
with:
package-name: 'helm/arcane-operator'
package-type: container
token: ${{ secrets.GITHUB_TOKEN }}
min-versions-to-keep: 10
delete-only-pre-release-versions: "true"

0 comments on commit 787a4c2

Please sign in to comment.