Skip to content

Commit

Permalink
ci: Automatically delete old pre-release versions of NuGet package
Browse files Browse the repository at this point in the history
  • Loading branch information
VMelnalksnis committed May 14, 2024
1 parent b760026 commit 8633238
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 47 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/nuget-restore.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker version cleanup
name: Package version cleanup

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand Down Expand Up @@ -27,3 +27,16 @@ jobs:
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'

nuget-cleanup:
name: NuGet version cleanup
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/[email protected]
with:
package-name: 'Gnomeshade.WebApi.Client'
package-type: 'nuget'
min-versions-to-keep: 10
delete-only-pre-release-versions: 'true'
3 changes: 1 addition & 2 deletions Gnomeshade.sln
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
.github\workflows\release.yml = .github\workflows\release.yml
.github\workflows\nuget-vulnerabilities.yml = .github\workflows\nuget-vulnerabilities.yml
.github\workflows\nuget-restore.yml = .github\workflows\nuget-restore.yml
.github\workflows\docker-cleanup.yml = .github\workflows\docker-cleanup.yml
.github\workflows\package-cleanup.yml = .github\workflows\package-cleanup.yml
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gnomeshade.Avalonia.Core", "source\Gnomeshade.Avalonia.Core\Gnomeshade.Avalonia.Core.csproj", "{9B9585C9-1A8D-434B-BAFC-A8C0AA04F3CB}"
Expand Down

0 comments on commit 8633238

Please sign in to comment.