fix: workflow delete tags input (#653)

This commit is contained in:
Felipe Martin 2023-07-21 08:08:02 +02:00 committed by Felipe M
parent 888d053b2d
commit 7776881eef
No known key found for this signature in database
GPG key ID: CCFBC5637D4000A8
2 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,12 @@
name: Delete registry tag
on: workflow_call
on:
workflow_call:
inputs:
tag_name:
description: 'The docker tag to remove'
required: true
type: string
jobs:
purge-image:
@ -9,6 +15,6 @@ jobs:
steps:
- uses: chipkent/action-cleanup-package@1316a66015b82d745b57acbb6c570f2bb1d108f9 # v1.0.3
with:
package-name: ${{ github.event.repository.name }}
tag: ${{ env.TAG_NAME }}
package-name: ghcr.io/${{ github.repository }}
tag: ${{ inputs.tag_name }}
github-token: ${{ secrets.GITHUB_TOKEN }}

View file

@ -9,4 +9,4 @@ jobs:
delete-tag:
uses: ./.github/workflows/_delete-registry-tag.yml
with:
TAG_NAME: pr-${{ github.event.pull_request.number }}
tag_name: pr-${{ github.event.pull_request.number }}