Skip to content

Commit

Permalink
Added workflow for automatic cleanup of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Feb 24, 2023
1 parent 7f85bcd commit 0552a95
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ updates:
interval: "weekly"
time: "04:00"
open-pull-requests-limit: 10

- package-ecosystem: "bundler" # See documentation for possible values
directory: "/updater" # Location of package manifests
schedule:
interval: "weekly"
time: "04:00"
open-pull-requests-limit: 10

- package-ecosystem: "docker" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
time: "04:00"
open-pull-requests-limit: 10

- package-ecosystem: "npm" # See documentation for possible values
directory: "/extension" # Location of package manifests
schedule:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: cleanup

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'

jobs:
build:

strategy:
matrix:
package-name:
- "dependabot-updater"

runs-on: ubuntu-latest

steps:
- name: Delete old packages
uses: actions/delete-package-versions@v4
with:
owner: ${{ env.repository_owner }}
repo: ${{ github.event.repository.name }}
token: ${{ secrets.GITHUB_TOKEN }}
package-name: ${{ matrix.package-name }}
min-versions-to-keep: 20

0 comments on commit 0552a95

Please sign in to comment.