Skip to content

Commit

Permalink
Add workflow for cleaning up old packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Sep 14, 2023
1 parent 116fdf5 commit 160e918
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/delete-old-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Delete old packages

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
delete:
name: Cleanup Maven

This comment has been minimized.

Copy link
@withinfocus

withinfocus Sep 14, 2023

Contributor

⛏️ "Clean up Android SDK"

runs-on: ubuntu-22.04
steps:
- uses: actions/delete-package-versions@0d39a63126868f5eefaa47169615edd3c0f61e20 # v4.1.1
with:
package-name: com.bitwarden.sdk-android
package-type: maven
num-old-versions-to-delete: 20
min-versions-to-keep: 25

# Ignore versions only containing version numbers
ignore-versions: '^\\d*\\.\\d*\\.\\d*$'

0 comments on commit 160e918

Please sign in to comment.