Package Prune #249
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
name: Package Prune | |
on: | |
workflow_run: | |
workflows: [Docker Image Build] | |
types: [completed] | |
workflow_dispatch: | |
jobs: | |
package-prune: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} | |
steps: | |
- name: GHCR Pruning | |
uses: vlaurin/action-ghcr-prune@v0.6.0 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
organization: manechat | |
container: izzy-moonbot | |
dry-run: false | |
keep-tags: latest | |
keep-last: 2 | |
prune-untagged: true |