Skip to content

Commit

Permalink
fix: workflow delete tags input (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartingr committed Jul 21, 2023
1 parent 888d053 commit 7776881
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/_delete-registry-tag.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 7776881

Please sign in to comment.