fix prune workflow
Docker / build (push) Has been cancelled Details

This commit is contained in:
Chris W 2024-01-07 12:18:37 -07:00
parent 959ea65508
commit 5b9e534fff
1 changed files with 3 additions and 6 deletions

View File

@ -6,10 +6,7 @@ on:
workflow_dispatch:
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
package_name: paste69
jobs:
build:
@ -21,8 +18,8 @@ jobs:
uses: vlaurin/action-ghcr-prune@v0.5.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
organization: ${{ github.actor }}
container: ${{ env.IMAGE_NAME }}
organization: ${{ github.repository_owner }}
container: ${{ env.package_name }}
dry-run: true # Dry-run first, then change to `false`
keep-younger-than: 2 # days
keep-last: 2