-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added workflow for automatic cleanup of packages
- Loading branch information
1 parent
7f85bcd
commit 0552a95
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |