Skip to content

Commit

Permalink
Separate the cleanup job
Browse files Browse the repository at this point in the history
  • Loading branch information
remmintan committed May 13, 2023
1 parent 8d022ae commit 6cb2840
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/nightly-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,16 @@ jobs:
package-type: 'maven'
min-versions-to-keep: 10

cleanup-old-packages:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Delete packages, keep most recent
uses: actions/delete-package-versions@v4
with:
package-name: 'org.minefortress.minefortress-nightly'
package-type: 'maven'
min-versions-to-keep: 10

0 comments on commit 6cb2840

Please sign in to comment.