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

This commit is contained in:
Chris W 2024-01-07 12:22:56 -07:00
parent 4baa348b30
commit 2ddc19efca
1 changed files with 2 additions and 6 deletions

View File

@ -1,7 +1,7 @@
name: Prune containers name: Prune containers
on: on:
workflow_call: workflow_dispatch:
inputs: inputs:
container: container:
type: string type: string
@ -15,10 +15,6 @@ on:
type: number type: number
default: 3 default: 3
description: "Keep last X containers" description: "Keep last X containers"
secrets:
token:
required: true
description: "Private access token with packages read/delete permission"
jobs: jobs:
prune: prune:
@ -27,7 +23,7 @@ jobs:
- name: Prune GHCR containers - name: Prune GHCR containers
uses: vlaurin/action-ghcr-prune@v0.5.0 uses: vlaurin/action-ghcr-prune@v0.5.0
with: with:
token: ${{ secrets.TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
organization: meikooy organization: meikooy
container: ${{ inputs.container }} container: ${{ inputs.container }}
keep-younger-than: ${{ inputs.older-than }} keep-younger-than: ${{ inputs.older-than }}