Skip to content

Commit

Permalink
fix: delete untagged image broken tagged image
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno committed Jun 23, 2024
1 parent e2e448b commit 231b897
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/clean_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ jobs:
id: vars
run: |
echo "APP_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_OUTPUT
- name: Delete old images
uses: snok/container-retention-policy@v2
- uses: dataaxiom/ghcr-cleanup-action@v1
with:
image-names: ${{steps.vars.outputs.APP_NAME}}
cut-off: A month ago UTC
keep-at-least: 10
untagged-only: true
account-type: personal
exclude-tags: 'v*,dev,latest,main,master'
keep-n-tagged: 10
package: ${{steps.vars.outputs.APP_NAME}}
token: ${{ secrets.PAT }}
# - name: Remove old artifacts
# uses: c-hive/gha-remove-artifacts@v1
Expand Down

0 comments on commit 231b897

Please sign in to comment.