GHCR automatic clean up #13
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: GHCR automatic clean up | |
on: workflow_dispatch | |
jobs: | |
ghcr-cleanup-job: | |
name: GHCR clean up | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout actions repository | |
uses: actions/checkout@v4 | |
with: | |
repository: Doist/actions | |
path: ./.doist/actions | |
token: ${{ secrets.GH_REPO_TOKEN }} | |
- name: GHCR scan and clean up | |
uses: ./.doist/actions/ghcr-cleanup-action | |
with: | |
package-name: unfurlist | |
gh-auth-token: ${{ secrets.GITHUB_TOKEN }} | |
keep-last-number: '5' | |
dry-run: false |